/* Authentication Pages Styles - Modern & Minimal */

/* Auth Container & Layout */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.auth-wrapper::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

/* Logo Section */
.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo a {
    display: inline-block;
    transition: transform 0.2s;
}

.auth-logo a:hover {
    transform: scale(1.02);
}

.auth-logo img {
    height: 40px;
    /* Slightly smaller for minimal look */
    width: auto;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.auth-header p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Auth Form */
.auth-form {
    margin-bottom: 1.5rem;
}

.auth-form-group {
    margin-bottom: 1.25rem;
}

.auth-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.auth-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #1f2937;
    font-family: inherit;
}

.auth-form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.auth-form-input::placeholder {
    color: #9ca3af;
}

.auth-form-hint {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Alert Messages */
.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: none;
    line-height: 1.4;
}

.auth-alert.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #991b1b;
}

.auth-alert-success {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    color: #166534;
}

/* Buttons */
.auth-btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.auth-btn-primary {
    background: #2563eb;
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.auth-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

.auth-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-btn-secondary {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.auth-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.75rem 0;
}

.auth-divider-line {
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider-text {
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Links */
.auth-link {
    color: #6b7280;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

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

.auth-link-primary {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link-primary:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Footer */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
}

.auth-footer-divider {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.auth-footer-text {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Google Button Icon */
.google-icon {
    width: 20px;
    height: 20px;
}

/* Password Strength */
.password-strength {
    margin-top: 0.75rem;
    height: 4px;
    background: #e5e7eb;
    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: #ef4444;
}

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

.password-strength-bar.strong {
    width: 100%;
    background: #10b981;
}

.password-strength-text {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: block;
}

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

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

.password-strength-text.strong {
    color: #10b981;
}

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

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

/* Responsive Design */
@media (max-width: 480px) {
    .auth-wrapper {
        padding: 1rem;
        align-items: center;
        background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    }

    .auth-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        background: #ffffff;
        border: none;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .auth-form-input {
        font-size: 16px;
        padding: 0.875rem 1rem;
    }

    .auth-btn {
        padding: 1rem;
    }
}

/* Success Modal */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal.show {
    display: flex;
    opacity: 1;
}

.auth-modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.auth-modal.show .auth-modal-content {
    transform: translateY(0);
}

.auth-modal-icon {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    color: #166534;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.auth-modal-icon svg {
    width: 32px;
    height: 32px;
}

.auth-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.auth-modal-message {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.5;
}