.pp-auth-container {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.pp-auth-card-modern {
    background: var(--bg-surface);
    width: 100%;
    max-width: 480px;
    padding: 48px;
    border-radius: 24px;
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-main);
}

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

.auth-header-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.auth-title {
    font-family: var(--font-display);
    font-size: 32px;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 15px;
}

.form-group-modern {
    margin-bottom: 24px;
}

.form-label-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.auth-form-modern input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-main);
    font-size: 16px;
    transition: all 0.2s;
}

.auth-form-modern input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.1);
}

.btn-primary-modern {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    transition: all 0.2s;
}

.btn-primary-modern:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.social-login-wrapper {
    margin-top: 32px;
    text-align: center;
}

.social-divider {
    position: relative;
    margin-bottom: 24px;
}

.social-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-main);
}

.social-divider span {
    position: relative;
    background: var(--bg-surface);
    padding: 0 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.btn-social-google {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-main);
    background: white;
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-social-google:hover { background: var(--color-stone); }

.auth-footer-cta {
    margin-top: 40px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-main);
    font-size: 14px;
}

.cta-link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.role-selector { display: none; }

/* --- Password field --- */
.password-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-field-wrapper input { width: 100%; padding-right: 48px !important; }
.password-toggle-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    flex-shrink: 0;
}
.password-toggle-btn:hover { color: var(--color-primary); }
.password-toggle-btn svg { width: 20px; height: 20px; display: block; }

/* --- Form errors --- */
.form-error {
    margin-top: 6px;
    padding: 8px 12px;
    background: rgba(192,75,58,0.08);
    border: 1px solid rgba(192,75,58,0.25);
    border-radius: 8px;
    color: var(--color-danger, #c04b3a);
    font-size: 13px;
}
.form-error-global {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(192,75,58,0.08);
    border-left: 4px solid var(--color-danger, #c04b3a);
    border-radius: 0 8px 8px 0;
    color: var(--color-danger, #c04b3a);
    font-size: 14px;
    font-weight: 500;
}

/* --- Auth links (forgot password etc.) --- */
.auth-links-modern {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}
.auth-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}
.auth-link-modern:hover {
    background: var(--color-stone);
    color: var(--color-primary);
}
.link-icon { font-size: 16px; }

/* --- Social hints --- */
.social-hint {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
    line-height: 1.5;
    padding: 0 8px;
}

/* --- Auth hint --- */
.auth-hint {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(201, 148, 42, 0.08);
    border: 1px solid rgba(201, 148, 42, 0.2);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 520px) {
    .pp-auth-card-modern {
        padding: 32px 24px;
        border-radius: 16px;
    }
    .auth-title { font-size: 26px; }
    .pp-auth-container { padding: 24px 16px; align-items: flex-start; }
}
