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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    /* height: 100vh; */
    background-color: #ffffff;
}

.log-container {
    width: 100%;
    display: flex;
    justify-content: center;
    height: 84vh;
}

/* ========== LEFT COLUMN - FORM ========== */
.left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    max-width: 45%;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    font-size: 40px;
    font-weight: 600;
    color: #1a1a1a;
}

.logo-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.form-container {
    width: 100%;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    padding: 10px 5px;
}

.subtitle {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 32px;
}

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

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s;
    background: white;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #303AB7;
    box-shadow: 0 0 0 3px rgba(48, 58, 183, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #303AB7;
}

.checkbox-label {
    margin-top: 10px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: #F76762;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #303AB7;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: #F76762;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 16px;
}

.btn-primary:hover {
    background: #303AB7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(48, 58, 183, 0.3);
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.google-icon {
    width: 20px;
    height: 20px;
}

.footer-text {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-top: 10px;
}

.footer-link {
    color: #F76762;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.footer-link:hover {
    color: #303AB7;
}

/* ========== RIGHT COLUMN - ILLUSTRATION ========== */
.right-column {
    flex: 1;
    background: url(../img/login-registe-background.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ========== ENHANCED RESPONSIVE DESIGN ========== */

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .right-column {
        display: none;
    }

    .left-column {
        padding: 40px;
        max-width: 100%;
        align-items: center;
    }

    .form-container {
        max-width: 500px;
        /* Prevent form from being too wide on tablet */
    }

    .logo {
        font-size: 36px;
        margin-bottom: 50px;
    }

    h1 {
        font-size: 28px;
        text-align: center;
    }

    .subtitle {
        text-align: center;
        font-size: 14px;
        margin-bottom: 24px;
    }

    .form-options {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Mobile & Small Tablet (up to 768px) */
@media (max-width: 768px) {
    .log-container {
        flex-direction: column;
        height: 80dvh;
        overflow-y: auto;
    }

    .right-column {
        display: none;
    }

    .left-column {
        max-width: 100%;
        padding: 30px 20px;
        justify-content: center;
    }

    .logo {
        font-size: 32px;
        margin-bottom: 30px;
        justify-content: center;
    }

    .form-container {
        max-width: 100%;
        width: 100%;
    }

    h1 {
        font-size: 26px;
        text-align: center;
    }

    .subtitle {
        text-align: center;
        font-size: 14px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .forgot-link {
        align-self: flex-end;
    }
}

/* Small Mobile Devices (up to 480px) */
@media (max-width: 480px) {
    .left-column {
        padding: 20px 16px;
    }

    .logo {
        font-size: 28px;
        margin-bottom: 25px;
    }

    h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

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

    input[type="email"],
    input[type="password"],
    input[type="text"] {
        padding: 12px;
        /* Comfortable touch target */
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px;
        font-size: 14px;
        margin-bottom: 12px;
    }

    .form-options {
        align-items: stretch;
        /* Full width options */
    }

    .checkbox-group {
        justify-content: flex-start;
    }

    .forgot-link {
        align-self: center;
        /* Center link on very small screens */
        margin-top: 5px;
    }
}

/* Extra Small (up to 360px) */
@media (max-width: 360px) {
    .logo-icon {
        width: 48px;
        height: 48px;
    }

    .logo {
        font-size: 22px;
        gap: 8px;
    }

    h1 {
        font-size: 20px;
    }

    .footer-text {
        font-size: 12px;
    }
}

/* Large Desktop Screens (min-width: 1200px) */
@media (min-width: 1020px) {
    .left-column {
        max-width: 45%;
        /* slightly wider on large screens */
        padding: 40px;
    }

    .form-container {
        /* max-width: 480px; */
        /* Let it fill the 45% container */
        width: 100%;
        max-width: 450px;
    }
}