/* Authentication Pages Styles for DevSouq */

/* Auth container */
.auth-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--body-bg);
}

/* Left side (form) */
.auth-form-container {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 4px 24px rgba(44,62,80,0.08), 0 1.5px 6px rgba(44,62,80,0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 28px;
    transition: box-shadow 0.3s, background 0.3s;
}

.rtl .auth-form-container {
    direction: rtl;
}

/* Right side (image) */
.auth-image-container {
    flex: 1;
    background-color: var(--primary-color);
    background-image: url('../images/banners/auth-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: none; /* Hidden on smaller screens */
    /* glass overlay */
    overflow: hidden;
}

.auth-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 40px;
    text-align: center;
    border-radius: 0 28px 28px 0;
}

.auth-image-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.auth-image-text {
    font-size: 16px;
    max-width: 500px;
    margin-bottom: 30px;
}

/* Auth form */
.auth-form {
    width: 100%;
    max-width: 400px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo img {
    max-height: 60px;
}

.auth-form-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.auth-form .form-control {
    padding: 12px 15px;
    border-radius: 14px;
    box-shadow: none;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 1px 4px rgba(44,62,80,0.04);
    transition: box-shadow 0.2s, background 0.2s;
}

.auth-form .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.18), 0 2px 8px rgba(44,62,80,0.10);
    background: rgba(255,255,255,0.98);
}

.auth-form .btn {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    font-weight: 600;
    margin-top: 10px;
    background: rgba(44,62,80,0.96);
    box-shadow: 0 2px 8px rgba(44,62,80,0.07);
    transition: background 0.3s, box-shadow 0.3s, color 0.3s;
}

.auth-form .btn-primary {
    background: rgba(44,62,80,0.96);
}

.auth-form .btn-primary:hover {
    background: rgba(52,152,219,0.96);
    box-shadow: 0 4px 16px rgba(44,62,80,0.13);
    color: #fff;
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: var(--secondary-color);
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

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

.auth-divider span {
    position: relative;
    background-color: var(--card-bg);
    padding: 0 15px;
    color: var(--text-light);
}

/* Social login */
.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: var(--light-color);
    color: var(--text-color);
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-login-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Language switcher */
.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.rtl .lang-switcher {
    right: auto;
    left: 20px;
}

.lang-switcher a {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
    background: rgba(255,255,255,0.92);
    margin-left: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(44,62,80,0.04);
}

.lang-switcher a:hover,
.lang-switcher a.active {
    background: rgba(52,152,219,0.98);
    color: white;
}

/* Forgot Password */
.back-to-login {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--text-light);
}

.back-to-login i {
    margin-right: 5px;
}

.rtl .back-to-login i {
    margin-right: 0;
    margin-left: 5px;
}

/* Registration */
.terms-text {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 15px;
    text-align: center;
}

/* Verification */
.verification-code {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.verification-code input {
    width: 50px;
    height: 60px;
    font-size: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.verification-code input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.resend-code {
    text-align: center;
    margin-top: 20px;
}

.countdown {
    color: var(--text-light);
    font-size: 14px;
}

/* Responsive */
@media (min-width: 992px) {
    .auth-image-container {
        display: block;
    }
}

@media (max-width: 576px) {
    .auth-form-container {
        padding: 20px;
    }
    
    .auth-form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .auth-form .form-control {
        padding: 10px;
    }
}