.auth-page-wrapper {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-top-bar {
    padding: 20px 5%;
    display: flex;
    justify-content: flex-end;
}

[dir="rtl"] .auth-top-bar {
    justify-content: flex-start;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: white;
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 450px;
}

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

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.auth-logo-svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: #111827;
}

.auth-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

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

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.auth-input {
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
    background-color: #f9fafb;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

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

.btn-auth-submit {
    padding: 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-auth-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: #6b7280;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

/* OTP Input */
.otp-wrapper {
    position: relative;
    width: 100%;
}

.otp-hidden-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
    letter-spacing: 50px;
    /* Helps with mobile cursor placement */
    padding-left: 20px;
}

.otp-input-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.otp-box {
    width: 45px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background-color: #f9fafb;
    transition: all 0.2s;
}

.otp-box.filled {
    border-color: var(--primary-color);
    background-color: white;
}

.otp-box.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.error-message {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 24px;
    border: 1px solid #fee2e2;
}

.success-message {
    background-color: #f0fdf4;
    color: #16a34a;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 24px;
    border: 1px solid #dcfce7;
}

/* social login if needed in future */
.social-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
    color: #9ca3af;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.social-divider::before,
.social-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-social {
    padding: 12px;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-social:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}