﻿/* ===============================
   LOGIN CONTAINER
================================ */

.login-container {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    padding: 20px 0;
}

/* ===============================
   LOGIN CARD
================================ */

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    margin: 0 20px;
    display: flex;
}

/* ===============================
   LEFT PANEL
================================ */

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #D62300 0%, #F5A623 100%);
    padding: 60px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

    .login-left h1 {
        font-size: 2.5rem;
        font-weight: bold;
        margin-bottom: 20px;
    }

    .login-left p {
        font-size: 1.1rem;
        margin-bottom: 30px;
        opacity: 0.95;
    }

    .login-left .burger-icon {
        font-size: 100px;
        margin-bottom: 30px;
        animation: float 3s ease-in-out infinite;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ===============================
   RIGHT PANEL
================================ */

.login-right {
    flex: 1;
    padding: 60px 50px;
}

.login-header {
    margin-bottom: 40px;
}

    .login-header h2 {
        color: #333;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .login-header p {
        color: #666;
        font-size: 0.95rem;
    }

/* ===============================
   FORM
================================ */

.form-group {
    margin-bottom: 25px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    height: 50px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    padding: 0 45px;
    font-size: 1rem;
    transition: all 0.3s;
}

    .form-control:focus {
        border-color: #D62300;
        box-shadow: 0 0 0 3px rgba(214, 35, 0, 0.12);
        outline: none;
    }

/* ===============================
   INPUT GROUP ICONS (FIX ICON)
================================ */

.input-group {
    position: relative;
}

.input-group-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    z-index: 5;
}

.input-group .form-control {
    padding-left: 45px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    z-index: 5;
}

    .password-toggle:hover {
        color: #D62300;
    }

/* ===============================
   REMEMBER / FORGOT
================================ */

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.form-check-label {
    color: #666;
}

.forgot-link {
    color: #D62300;
    text-decoration: none;
    font-weight: 500;
}

    .forgot-link:hover {
        color: #A01800;
        text-decoration: underline;
    }

/* ===============================
   LOGIN BUTTON
================================ */

.btn-login {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #D62300 0%, #F5A623 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(214, 35, 0, 0.3);
    }

    .btn-login:active {
        transform: translateY(0);
    }

    /* ===============================
   LOADING STATE
================================ */

    .btn-login.loading {
        position: relative;
        color: transparent;
    }

        .btn-login.loading::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            top: 50%;
            left: 50%;
            margin-left: -10px;
            margin-top: -10px;
            border: 3px solid transparent;
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s linear infinite;
        }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===============================
   DIVIDER
================================ */

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

    .divider::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 100%;
        height: 1px;
        background: #e0e0e0;
    }

    .divider span {
        background: white;
        padding: 0 15px;
        color: #999;
        font-size: 0.9rem;
        position: relative;
        z-index: 1;
    }

/* ===============================
   GOOGLE BUTTON
================================ */

.btn-google {
    width: 100%;
    height: 50px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

    .btn-google:hover {
        background: #f8f9fa;
        border-color: #D62300;
        color: #D62300;
    }

/* ===============================
   REGISTER LINK
================================ */

.register-link {
    text-align: center;
    margin-top: 25px;
    color: #666;
}

    .register-link a {
        color: #D62300;
        font-weight: 600;
        text-decoration: none;
    }

        .register-link a:hover {
            color: #A01800;
            text-decoration: underline;
        }

/* ===============================
   ALERT
================================ */

.alert {
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

/* ===============================
   BOOTSTRAP FIX
================================ */

.input-group > .form-control,
.input-group > .form-control:focus {
    border-radius: 12px !important;
}

    .input-group > .form-control:not(:first-child),
    .input-group > .form-control:not(:last-child) {
        border-radius: 12px !important;
    }

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
    }

    .login-left {
        padding: 40px 30px;
    }

        .login-left h1 {
            font-size: 2rem;
        }

        .login-left .burger-icon {
            font-size: 60px;
            margin-bottom: 20px;
        }

    .login-right {
        padding: 40px 30px;
    }
}
