/* Authentication Pages Styles (Login & Signup) */

body.auth-page {
    background-color: var(--bg-body);
    background-image: radial-gradient(at 0% 0%, #eff6ff 0px, transparent 50%),
        radial-gradient(at 100% 100%, #eff6ff 0px, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

/* Override Intl Tel Input Width */
.iti {
    width: 100%;
}

.auth-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0 auto;
}

.auth-card.signup-card {
    max-width: 550px;
    padding: 2rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    margin-bottom: 2.5rem;
}

.auth-logo {
    height: 60px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
    width: auto;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-heading);
    font-size: 0.9rem;
}

.input-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    transition: color 0.2s;
    z-index: 2;
}

/* Adjustments for Credential / Phone inputs */
#credential,
#phone {
    padding-left: 5rem !important;
    /* Spacing for ITI or Icon */
}

#credential::placeholder {
    text-indent: 0.5cm;
}

#credential::-webkit-input-placeholder {
    text-indent: 0.5cm;
}

/* ITI overrides */
.iti .form-input,
.iti #credential {
    padding-left: 5rem !important;
}

.iti+.input-icon {
    display: none;
}

.form-input:focus+.input-icon {
    color: var(--primary);
}

.input-group .input-icon {
    pointer-events: none;
}

.btn-primary {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.footer-text {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.error-msg {
    font-weight: 700 !important;
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.validation-icon {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    display: none;
}

.d-none {
    display: none !important;
}

.initially-hidden {
    display: none;
}

.home-link {
    color: #64748b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.home-link-container {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.8rem;
}
/* Alert Styles (Restored) */
.alert {
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: none;
    text-align: left;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d1e7dd !important;
    color: #0f5132 !important;
    border-color: #badbcc !important;
}

.alert-error, .alert-danger {
    background-color: #fef2f2 !important;
    color: #dc3545 !important;
    border-color: #fee2e2 !important;
}
