﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap');

:root {
    --primary-purple: #6246ea;
    --dark-purple-hover: #5538d4;
    --dark-text: #241442;
    --light-text: #5c5c70;
    --page-bg: #ffffff;
    --illustration-bg: #faf9f6; 
    --border-color: #e0e0e0;
}

body {
    font-family: 'Manrope', sans-serif; 
    margin: 0;
    padding: 0;
    color: var(--dark-text);
}

.login-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.form-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: var(--page-bg);
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
}

.logo a {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-text);
    text-decoration: none;
    margin-bottom: 40px;
    display: inline-block;
}

.form-section h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 8px;
}

.form-section .subtitle {
    font-size: 16px;
    color: var(--light-text);
    margin-bottom: 30px;
}

/* --- Các thành phần của Form --- */
.input-group {
    margin-bottom: 20px;
}

    .input-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .input-group input {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        font-size: 16px;
        box-sizing: border-box;
        transition: border-color 0.3s, box-shadow 0.3s;
    }

        .input-group input::placeholder {
            color: #a0a0a0;
        }

        .input-group input:focus {
            outline: none;
            border-color: var(--primary-purple);
            box-shadow: 0 0 0 3px rgba(98, 70, 234, 0.2);
        }

.forgot-password {
    display: block;
    text-align: right;
    margin-top: -10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-purple);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .submit-btn:hover {
        background-color: var(--dark-purple-hover);
    }

.form-switch {
    text-align: center;
    margin-top: 30px;
    color: var(--light-text);
}

    .form-switch a {
        color: var(--primary-purple);
        font-weight: 600;
        text-decoration: none;
    }

/* --- Cột Ảnh (Bên phải) --- */
.illustration-section {
    flex: 1;
    background-color: var(--illustration-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

    .illustration-section img {
        max-width: 100%;
        max-height: 80vh;
        object-fit: contain;
    }

/* --- Responsive cho màn hình nhỏ --- */
@media (max-width: 900px) {
    .illustration-section {
        display: none; 
    }

    .form-section {
        justify-content: center;
        padding: 20px;
    }
}

/*forget pass*/
/* ---  xác nhận thành công --- */
.success-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 20px;
}
.alert{
    color:red;
    padding:10px
}

.password-wrapper {
    position: relative;
}

    .password-wrapper input {
        width: 100%;
        padding-right: 40px;
    }

    .password-wrapper .toggle-password {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #6c757d;
    }

        .password-wrapper .toggle-password:hover {
            color: #000;
        }