/* ==========================================
   ADMIN LOGIN PAGE - FULL CSS
   ========================================== */

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

/* BODY */
body {
    font-family: "Poppins", sans-serif;
    background: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WRAPPER */
.login-wrapper {
    display: grid;
    grid-template-columns: 500px 500px;
    width: 1000px;
    height: 600px;
    border-radius: 40px;
    overflow: hidden;
}

/* LEFT SECTION */
.login-left {
    background: #ffffff;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* HEADER */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-title {
    font-size: 32px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #6b7280;
}

/* ALERT */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 13px;
    transition:
        opacity 0.3s,
        transform 0.3s;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

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

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* INPUT ICON (LEFT) */
.input-icon {
    position: absolute;
    left: 18px;
    width: 20px;
    height: 20px;
    color: #78716c;
    pointer-events: none;
    z-index: 1;
}

/* FORM INPUT */
.form-input {
    width: 100%;
    padding: 14px 50px 14px 50px;
    font-size: 15px;
    font-family: "Poppins", sans-serif;
    border-radius: 999px;
    border: 2px solid #78716c;
    outline: none;
    transition: border-color 0.2s;
    color: #000;
    background: #fff;
}

.form-input::placeholder {
    color: #78716c;
    opacity: 0.6;
}

.form-input:focus {
    border-color: #000;
}

/* TOGGLE PASSWORD BUTTON (RIGHT) */
.toggle-password {
    position: absolute;
    right: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: transform 0.2s;
}

.toggle-password:hover {
    transform: scale(1.1);
}

.toggle-password:active {
    transform: scale(0.95);
}

.eye-icon {
    width: 20px;
    height: 20px;
    color: #78716c;
    transition: color 0.2s;
}

.toggle-password:hover .eye-icon {
    color: #000;
}

/* ERROR STATE */
.form-input.error {
    border-color: #ef4444;
}

.error-message {
    display: block;
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    margin-left: 18px;
    font-weight: 500;
}

/* BUTTON LOGIN */
.btn-login {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
}

.btn-login:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    background: #6b7280;
    cursor: not-allowed;
    transform: none;
}

.btn-text {
    display: block;
}

/* RIGHT SECTION (IMAGE) */
.login-right {
    position: relative;
    height: 100%;
    background-image: url("/admin/img/login.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* OVERLAY */
.login-right-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

/* CONTENT */
.login-right-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    padding: 40px;
}

.right-logo {
    width: 220px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.right-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 8px;
}

.right-subtitle {
    font-size: 15px;
    opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        width: 500px;
        height: auto;
    }

    .login-left {
        border-right: none;
        border-bottom: 2px solid #000;
    }

    .login-right {
        min-height: 320px;
    }
}

@media (max-width: 640px) {
    .login-wrapper {
        width: 100%;
        margin: 20px;
        border-radius: 24px;
    }

    .login-left {
        padding: 40px 30px;
    }

    .login-title {
        font-size: 26px;
    }

    .login-subtitle {
        font-size: 13px;
    }

    .form-input {
        font-size: 14px;
        padding: 12px 45px 12px 45px;
    }

    .input-icon {
        width: 18px;
        height: 18px;
        left: 16px;
    }

    .toggle-password {
        right: 16px;
    }

    .eye-icon {
        width: 18px;
        height: 18px;
    }

    .btn-login {
        padding: 12px;
        font-size: 15px;
    }

    .right-logo {
        width: 180px;
    }
}
