:root {
    --primary-color: #673ab7;
    --secondary-color: #512da8;
    --text-color: #333;
    --light-text: #777;
    --white: #fff;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #f5f5f5;
    direction: rtl;
}

.login-container {
    display: flex;    
    width: 100%;
    height: 100%;
}

.login-image {
    flex: 1;
    background-image: url('../img/building-curve.png');
    background-size: cover;
    background-position: center;
    position: relative;
}
.login-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0rem;
    background-color: var(--white);
}
.login-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background-color: var(--white);
    max-width: 400px;
    width: 100%;
}
.logo-container {
    text-align: center;
    margin-bottom: 0rem;
    padding: 1rem;
}
.auth-logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.logo-container img {
    max-width: 200px;
    height: auto;
}
.login-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}
.login-subtitle {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-align: center;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}
.btn-login {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-login:hover {
    background-color: var(--secondary-color);
}
.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: 100%;
    }
    .login-image {
        height: 30vh;
    }
    .login-form {
        padding: 2rem;
    }
}
/* Add these styles to your existing auth.css file */

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.forgot-password {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.register-link {
    color: var(--text-color);
    font-size: 0.9rem;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

/* OTP Verification Styles */
.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 1rem 0;
}

.otp-input {
    width: 50px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.15);
}

.otp-error {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
}

.otp-expiry-note {
    text-align: center;
    color: var(--light-text);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.resend-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: opacity 0.3s;
}

.resend-link:disabled {
    color: var(--light-text);
    cursor: not-allowed;
    opacity: 0.6;
}

.resend-link:not(:disabled):hover {
    text-decoration: underline;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .otp-input {
        width: 42px;
        height: 48px;
        font-size: 1.25rem;
    }

    .otp-inputs {
        gap: 6px;
    }
}