.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-color);
}

.login-container {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .logo {
    display: inline-block;
    margin-bottom: 2rem;
}

.login-header .logo img {
    height: 40px;
    width: auto;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-dark-low);
    font-size: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.input-wrapper i {
    position: absolute;
    color: var(--text-dark-low);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.input-wrapper.lefted i {
    left: 1rem;
}

.input-wrapper.error {
    margin-bottom: 1.5rem;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--bg-color);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--card-bg);
    color: var(--text-dark);
}

.input-wrapper input#email,
.input-wrapper input#fullName {
    padding-left: 3rem;
}

.input-wrapper input#password {
    padding-right: 3rem;
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
}

.input-wrapper input:focus + i {
    color: var(--primary-color);
}

.input-wrapper.error input {
    border-color: #ff5757;
    background: rgba(255, 87, 87, 0.02);
}

.input-wrapper.success input {
    border-color: #42cb65;
    background: rgba(66, 203, 101, 0.02);
}

.validation-message {
    position: absolute;
    left: 0;
    top: 100%;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-5px);
}

.validation-message.error {
    color: #ff5757;
    opacity: 1;
    transform: translateY(0);
}

.validation-message.success {
    color: #42cb65;
    opacity: 1;
    transform: translateY(0);
}

.validation-icon {
    position: absolute;
    left: -1.5rem!important;
    top: 50%;
    width: 30px;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.input-wrapper.error .validation-icon {
    color: #ff5757;
    opacity: 1;
}

.input-wrapper.success .validation-icon {
    color: #42cb65;
    opacity: 1;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    color: var(--text-dark-low);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}



.toggle-password:hover {
    color: var(--text-dark);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.remember-me input[type="checkbox"] {
    display: none;
}

.remember-me .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-dark-low);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me .checkmark:after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-dark);
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    border-color: var(--primary-color-ultradark);
    background: var(--primary-color);
}

.remember-me input[type="checkbox"]:checked + .checkmark:after {
    opacity: 1;
}



.forgot-link {
    font-size: 0.9rem;
    color: var(--primary-color-ultradark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    text-decoration: underline;
}

.submit-btn {
    padding: 1rem;
    background: var(--primary-color);
    color: var(--text-dark);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

.register-link {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-dark-low);
    font-size: 0.95rem;
}

.register-link a {
    color: var(--primary-color-ultradark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.register-link a:hover {
    text-decoration: underline;
}

.login-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.banner-content {
    text-align: center;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.banner-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-item i {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .login-page {
        grid-template-columns: 1fr;
    }

    .login-banner {
        display: none;
    }

    .login-container {
        padding: 1rem;
        width: calc(100% - 2rem);
    }
}

@media (max-width: 576px) {
    .social-login {
        grid-template-columns: 1fr;
    }

}


.error-message {
    color: #F44336;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message i {
    font-size: 1rem;
}

.form-group.error input {
    border-color: #F44336;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.social-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: var(--bg-color-dark);
}


.swal2-toast {
    padding: 1rem !important;
    font-size: 0.9rem !important;
}

.swal2-toast .swal2-title {
    margin: 0 0 0.5rem 0 !important;
    font-size: 1rem !important;
}

.swal2-toast .swal2-html-container {
    margin: 0 !important;
    font-size: 0.9rem !important;
}


.form-options a {
    color: var(--primary-color-ultradark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.form-options a:hover {
    text-decoration: underline;
}

#registerForm .form-options {
    margin: 1rem 0;
}

#registerForm .remember-me {
    color: var(--text-dark-low);
    font-size: 0.85rem;
}

#registerForm .submit-btn {
    margin-top: 1rem;
}

.register-link {
    margin-top: 1.5rem;
}


.form-options.error .remember-me {
    color: #F44336;
}

.form-options .error-message {
    margin-top: 0.5rem;
}




.verification-code {
    text-align: center;
    margin: 1.5rem 0;
}

.verification-code label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

.code-inputs {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.code-inputs input {
    width: 50px;
    height: 60px;
    border: 2px solid var(--bg-color);
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-dark);
    background: var(--card-bg);
    transition: all 0.3s ease;
    cursor: pointer;
}

.code-inputs input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 232, 0, 0.2);
    transform: translateY(-2px);
}

.code-inputs input::placeholder {
    color: var(--text-dark-low);
}

.resend-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.resend-timer {
    font-size: 0.85rem;
    color: var(--text-dark-low);
}

.resend-btn {
    color: var(--primary-color-ultradark);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.resend-btn:not(:disabled):hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .code-inputs {
        gap: 0.5rem;
    }

    .code-inputs input {
        width: 45px;
        height: 55px;
        font-size: 1.2rem;
    }
}