﻿/* =====================================================
   LOGIN PAGE – FAST, MODERN, MOBILE FIRST
===================================================== */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", system-ui, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg,#F5A623,#248AFD);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Page wrapper */
.login-page {
    width: 100%;
    max-width: 1100px;
    min-height: 560px;
    display: flex;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,.25);
}

/* LEFT BRAND */
.login-brand {
    flex: 1;
    padding: 50px;
    background: linear-gradient(135deg,#248AFD,#F5A623);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .login-brand h1 {
        font-size: 36px;
        font-weight: 800;
    }

    .login-brand p {
        font-size: 16px;
        margin-top: 12px;
        opacity: .9;
    }

/* RIGHT CARD */
.login-card {
    flex: 1;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .login-card h2 {
        font-size: 28px;
        font-weight: 700;
        color: #111827;
    }

.subtitle {
    color: #6b7280;
    margin-bottom: 26px;
}

/* Form */
.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 6px;
        display: block;
    }

/* Input */
.input-box {
    display: flex;
    align-items: center;
    background: #f4f6f9;
    border-radius: 12px;
    padding: 0 14px;
}

    .input-box i {
        color: #6b7280;
    }

    .input-box input {
        border: none;
        outline: none;
        background: transparent;
        padding: 14px 10px;
        width: 100%;
        font-size: 15px;
    }

/* Button */
.btn-login {
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg,#248AFD,#71C02B);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(36,138,253,.45);
    }

/* Footer */
.login-footer {
    margin-top: 30px;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    body {
        background: linear-gradient(135deg,#248AFD,#F5A623);
    }

    .login-page {
        flex-direction: column;
        min-height: auto;
        border-radius: 0;
        box-shadow: none;
    }

    .login-brand {
        padding: 35px 25px;
        text-align: center;
    }

        .login-brand h1 {
            font-size: 28px;
        }

    .login-card {
        padding: 35px 22px;
    }
}
/* ================= ERROR MESSAGE ================= */

.login-error {
    background: rgba(255,71,71,.1);
    color: #b91c1c;
    border-left: 4px solid #FF4747;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

    .login-error i {
        font-size: 16px;
    }

/* Input error */
.input-error {
    border: 1px solid #FF4747;
    background: #fff5f5;
}

/* ================= SUPPORT ================= */

.login-support {
    margin-top: 26px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

    .login-support a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 6px;
        color: #248AFD;
        font-weight: 600;
        text-decoration: none;
    }

        .login-support a:hover {
            text-decoration: underline;
        }
