/* auth.css */
body.auth-page {
    background-color: #f5f6f8;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 540px;
    padding: 20px;
}

.auth-card {
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    padding: 48px 32px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Circular back button */
.auth-back-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.auth-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    background: #fafafa;
}

.auth-header {
    margin-top: 32px;
    margin-bottom: 32px;
    text-align: center;
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-input-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.auth-input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: color 0.2s ease;
}

.auth-input-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    font-size: 15px;
    font-family: inherit;
    border-radius: 50px;
    border: 1px solid #e8e8e8;
    background: #ffffff;
    color: #1a1a1a;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth-input:focus {
    border-color: #3bb77e;
    box-shadow: 0 0 0 4px rgba(59, 183, 126, 0.1);
}

.auth-input:focus + .auth-input-icon {
    color: #3bb77e;
}

/* For inputs with right icons (like password toggle) */
.auth-input-password {
    padding-right: 52px;
}

.auth-password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.auth-password-toggle:hover {
    color: #1a1a1a;
}

.auth-password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    margin-top: -4px;
    margin-bottom: 4px;
}

.auth-remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
    user-select: none;
}

.auth-remember-me input {
    accent-color: #3bb77e;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.auth-forgot-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #3bb77e;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(59, 183, 126, 0.2);
}

.auth-submit-btn:hover {
    background: #2da56c;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 183, 126, 0.3);
}

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

.auth-switch-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 12px;
    margin-bottom: 0;
}

.auth-switch-link {
    color: #3bb77e;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch-link:hover {
    text-decoration: underline;
}

/* Social logins */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 28px 0;
    color: #888;
    font-size: 13px;
    font-weight: 500;
}

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

.auth-divider:not(:empty)::before {
    margin-right: 1.5em;
}

.auth-divider:not(:empty)::after {
    margin-left: 1.5em;
}

.auth-social-group {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.auth-social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.auth-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    background: #fafafa;
}

.auth-social-btn svg {
    width: 20px;
    height: 20px;
}

/* Alert styles matching Poppins design */
.auth-alert {
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 16px;
}

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

.auth-alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Mobile responsive optimizations */
@media (max-width: 576px) {
    body.auth-page {
        background-color: #ffffff;
        align-items: flex-start;
    }
    
    .auth-container {
        padding: 0;
        max-width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .auth-card {
        border-radius: 0;
        box-shadow: none;
        padding: 40px 24px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .auth-back-btn {
        top: 20px;
        left: 20px;
    }
}
