﻿/* auth.css - Shared styles for Login & Register */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.auth-container {
    display: flex;
    height: 100vh;
}

/* Illustration Side */
.auth-illustration {
    flex: 1;
    background: linear-gradient(135deg, #6c7cf5 0%, #5563e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

    .auth-illustration::before {
        content: '';
        position: absolute;
        width: 600px;
        height: 600px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
        top: -200px;
        right: -200px;
    }

.illustration-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    max-width: 500px;
}

.illustration-logo {
    width: 120px;
    margin-bottom: 30px;
}

.illustration-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.illustration-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}
.illustration-content img {
   color:white;
}

.features-list {
    text-align: start;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    font-size: 1rem;
}

    .feature-item i {
        font-size: 1.25rem;
        margin-inline-end: 12px;
    }

/* Form Side */
.auth-card {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.language-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
}

[dir="rtl"] .language-toggle {
    right: auto;
    left: 20px;
}

.btn-language {
    background: rgba(108, 124, 245, 0.1);
    border: 1px solid rgba(108, 124, 245, 0.3);
    color: #6c7cf5;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-language:hover {
        background: rgba(108, 124, 245, 0.2);
    }

.auth-header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
    max-width: 450px;
}

    .auth-header .illustration-logo {
        width: 80px;
        margin-bottom: 20px;
    }

    .auth-header h1 {
        font-size: 1.75rem;
        font-weight: 600;
        color: #1a1a1a;
        margin-bottom: 8px;
    }

    .auth-header p {
        color: #666;
        font-size: 0.95rem;
    }

.auth-form {
    width: 100%;
    max-width: 450px;
}

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

    .form-group label {
        display: block;
        font-weight: 500;
        color: #333;
        margin-bottom: 8px;
        font-size: 0.9rem;
    }

.input-with-icon {
    position: relative;
}

    .input-with-icon i {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
        font-size: 1.1rem;
    }

[dir="ltr"] .input-with-icon i {
    left: 16px;
}

[dir="rtl"] .input-with-icon i {
    right: 16px;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

[dir="ltr"] .input-with-icon input {
    padding-left: 45px;
}

[dir="rtl"] .input-with-icon input {
    padding-right: 45px;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #6c7cf5;
    box-shadow: 0 0 0 3px rgba(108, 124, 245, 0.1);
}

.input-with-icon input.invalid {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.auth-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6c7cf5 0%, #5563e8 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

    .auth-button:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(108, 124, 245, 0.3);
    }

    .auth-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 0.9rem;
}

    .auth-footer a {
        color: #6c7cf5;
        text-decoration: none;
        font-weight: 600;
    }

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

/* Responsive */
@media (max-width: 992px) {
    .auth-illustration {
        display: none;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 20px;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }
}






















/* OTP Boxes */
.otp-boxes {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.otp-input.modern {
    width: 60px;
    height: 60px;
    border: 1px solid #e0e3eb;
    border-radius: 12px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    color: #1b263b;
    background-color: #f5f7fb;
    transition: all 0.3s;
}

    .otp-input.modern:focus {
        border-color: #6c7cf5;
        outline: none;
        background-color: #ffffff;
        box-shadow: 0 0 0 4px rgba(108, 124, 245, 0.1);
    }

    .otp-input.modern.invalid {
        border-color: #dc3545;
    }

.auth-logo {
    width: 120px;
    margin-bottom: 20px;
}

.otp-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

    .otp-footer a {
        color: #6c7cf5;
        text-decoration: none;
        font-weight: 500;
    }

        .otp-footer a:hover {
            text-decoration: underline;
        }

        .otp-footer a.disabled {
            color: #999;
            cursor: not-allowed;
            pointer-events: none;
        }

/* Responsive */
@media (max-width: 992px) {
    .auth-illustration {
        display: none;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 20px;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }
}