/* ============================================
   Authentication Pages Stylesheet
   Modern, responsive design for signin/signup
   ============================================ */

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 50px 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo svg {
    width: 50px;
    height: 50px;
    color: #667eea;
    margin-bottom: 15px;
}

.auth-logo h1 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.auth-logo p {
    color: #6c757d;
    font-size: 14px;
    margin-top: 8px;
}

/* Form Elements */
.auth-form .form-label {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    margin-bottom: 8px;
}

.auth-form .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.auth-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #fff;
    outline: none;
}

.auth-form .form-control::placeholder {
    color: #a0aec0;
}

/* Password Input Group */
.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #667eea;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    display: none;
}

.password-strength.show {
    display: block;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-bar.weak {
    width: 33%;
    background: #f56565;
}

.password-strength-bar.medium {
    width: 66%;
    background: #ed8936;
}

.password-strength-bar.strong {
    width: 100%;
    background: #48bb78;
}

.password-strength-text {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.password-strength-text.weak {
    color: #f56565;
}

.password-strength-text.medium {
    color: #ed8936;
}

.password-strength-text.strong {
    color: #48bb78;
}

/* Remember Me Checkbox */
.form-check-input {
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    color: #4a5568;
    font-size: 14px;
    cursor: pointer;
    margin-left: 8px;
}

/* Submit Button */
.btn-auth-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-auth-primary:active {
    transform: translateY(0);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
    padding: 0 15px;
    color: #a0aec0;
    font-size: 14px;
    font-weight: 500;
}

/* Google Sign-In Button */
.btn-google {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-google:hover {
    border-color: #667eea;
    background: #f7fafc;
    color: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

/* Links */
.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: #718096;
    font-size: 14px;
}

/* Alert Messages */
.auth-alert {
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    border: none;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-alert.alert-danger {
    background: #fff5f5;
    color: #c53030;
}

.auth-alert.alert-success {
    background: #f0fff4;
    color: #2f855a;
}

.auth-alert.alert-info {
    background: #ebf8ff;
    color: #2c5282;
}

/* Loading State */
.btn-auth-primary.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-auth-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 576px) {
    .auth-card {
        padding: 40px 30px;
        border-radius: 16px;
    }

    .auth-logo h1 {
        font-size: 28px;
    }

    .auth-container {
        padding: 15px;
    }
}

/* Terms and Privacy */
.auth-terms {
    font-size: 12px;
    color: #718096;
    text-align: center;
    margin-top: 20px;
    line-height: 1.6;
}

.auth-terms a {
    color: #667eea;
    text-decoration: none;
}

.auth-terms a:hover {
    text-decoration: underline;
}

/* Form Validation */
.form-control.is-invalid {
    border-color: #f56565;
}

.form-control.is-valid {
    border-color: #48bb78;
}

.invalid-feedback,
.valid-feedback {
    font-size: 13px;
    margin-top: 6px;
}