﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0b8f87;
    --primary-dark: #06756f;
    --primary-light: #e7f8f6;
    --dark: #102a43;
    --text: #52606d;
    --muted: #829ab1;
    --border: #d9e2ec;
    --white: #ffffff;
    --bg: #f4f9fb;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--dark);
    min-height: 100vh;
}


/* ================================
   MAIN PAGE
================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    position: relative;
    overflow: hidden;
    background: radial-gradient( circle at 10% 20%, rgba(11, 143, 135, 0.08), transparent 30% ), radial-gradient( circle at 90% 80%, rgba(43, 108, 176, 0.08), transparent 30% ), #f5fafb;
}


/* ================================
   BACKGROUND CIRCLES
================================ */

.bg-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.circle-one {
    width: 380px;
    height: 380px;
    top: -180px;
    left: -120px;
    border: 70px solid rgba(11, 143, 135, 0.04);
}

.circle-two {
    width: 450px;
    height: 450px;
    right: -250px;
    bottom: -250px;
    border: 90px solid rgba(43, 108, 176, 0.04);
}

.circle-three {
    width: 100px;
    height: 100px;
    top: 15%;
    right: 8%;
    background: rgba(11, 143, 135, 0.05);
}


/* ================================
   WRAPPER
================================ */

.login-wrapper {
    width: 1150px;
    min-height: 680px;
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 30px 80px rgba(16, 42, 67, 0.12);
}


/* ================================
   LEFT SECTION
================================ */

.login-info {
    padding: 55px;
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: linear-gradient( 145deg, #087f78, #0b958c 55%, #086b76 );
}


    /* Decorative Circles */

    .login-info::before {
        content: "";
        position: absolute;
        width: 430px;
        height: 430px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 50%;
        right: -250px;
        top: -180px;
    }

    .login-info::after {
        content: "";
        position: absolute;
        width: 350px;
        height: 350px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 50%;
        left: -230px;
        bottom: -190px;
    }


/* ================================
   BRAND
================================ */

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    position: relative;
    z-index: 2;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(10px);
}

.brand h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

    .brand h2 span,
    .mobile-logo h2 span {
        color: #baf4ef;
    }

.brand p {
    font-size: 10px;
    opacity: 0.72;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 2px;
}


/* ================================
   INFO CONTENT
================================ */

.info-content {
    position: relative;
    z-index: 2;
    max-width: 510px;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 22px;
}

.info-content h1 {
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -1.8px;
    margin-bottom: 20px;
    font-weight: 800;
}

    .info-content h1 span {
        display: block;
        color: #baf4ef;
    }

.info-content > p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.8;
    max-width: 460px;
}


/* ================================
   FEATURES
================================ */

.features {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 13px;
}

.feature-icon {
    width: 39px;
    height: 39px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.feature strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
}

.feature small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}


/* ================================
   COPYRIGHT
================================ */

.copyright {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
}

.status {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .status i {
        font-size: 7px;
        color: #baf4ef;
    }


/* ================================
   RIGHT LOGIN CARD
================================ */

.login-card {
    padding: 65px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-logo {
    display: none;
}


/* ================================
   LOGIN HEADER
================================ */

.login-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.small-title {
    display: block;
    color: var(--primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.login-header h2 {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.login-subtitle {
    color: var(--text);
    font-size: 12px;
    line-height: 1.6;
    margin: 13px 0 30px;
}


/* ================================
   FORM
================================ */

.form-group {
    margin-bottom: 21px;
}

    .form-group label {
        display: block;
        font-size: 11px;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 8px;
    }

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 16px;
    transition: 0.25s;
}

.input-wrapper input {
    width: 100%;
    height: 51px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 45px;
    font-family: inherit;
    font-size: 12px;
    color: var(--dark);
    background: #fbfdfe;
    outline: none;
    transition: all 0.25s ease;
}

    .input-wrapper input::placeholder {
        color: #a5b5c4;
    }

    .input-wrapper input:focus {
        background: white;
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(11, 143, 135, 0.08);
    }

        .input-wrapper input:focus ~ .input-icon {
            color: var(--primary);
        }


/* ================================
   PASSWORD
================================ */

.password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .password-label label {
        margin-bottom: 8px;
    }

.forgot-link {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 8px;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

.password-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

    .password-toggle:hover {
        color: var(--primary);
    }


/* ================================
   ERROR
================================ */

.error-message {
    display: block;
    font-size: 10px;
    color: #d64545;
    margin-top: 6px;
    min-height: 0;
}


/* ================================
   LOGIN OPTIONS
================================ */

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 23px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    color: var(--text);
    cursor: pointer;
}

    .remember-me input {
        display: none;
    }

.custom-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    transition: 0.2s;
}

.remember-me input:checked + .custom-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.secure-login {
    color: #829ab1;
    font-size: 9px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .secure-login i {
        color: var(--primary);
    }


/* ================================
   LOGIN BUTTON
================================ */

.login-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0b958c, #06756f);
    color: white;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(11, 143, 135, 0.2);
    transition: all 0.25s ease;
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(11, 143, 135, 0.27);
    }

    .login-btn:active {
        transform: translateY(0);
    }

.arrow-icon {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.btn-loader {
    display: none;
}

.login-btn.loading .btn-text,
.login-btn.loading .arrow-icon {
    display: none;
}

.login-btn.loading .btn-loader {
    display: inline-block;
}

.btn-loader i {
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ================================
   FOOTER
================================ */

.login-footer {
    margin-top: 30px;
}

.security-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .security-line span {
        height: 1px;
        background: #e7edf2;
        flex: 1;
    }

    .security-line small {
        color: #9fb0bf;
        font-size: 8px;
        white-space: nowrap;
    }

.login-footer > p {
    text-align: center;
    margin-top: 12px;
    font-size: 9px;
    color: #9aaebe;
    line-height: 1.6;
}

    .login-footer > p i {
        color: var(--primary);
        margin-right: 3px;
    }


/* ================================
   RESPONSIVE
================================ */

@media (max-width: 950px) {

    .login-wrapper {
        width: 700px;
        grid-template-columns: 1fr;
    }

    .login-info {
        display: none;
    }

    .login-card {
        padding: 55px;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: center;
        margin-bottom: 35px;
    }

        .mobile-logo .brand-icon {
            background: var(--primary-light);
            color: var(--primary);
        }

        .mobile-logo h2 {
            font-size: 22px;
            color: var(--dark);
            font-weight: 800;
        }

            .mobile-logo h2 span {
                color: var(--primary);
            }
}


@media (max-width: 600px) {

    .login-page {
        padding: 15px;
    }

    .login-wrapper {
        width: 100%;
        min-height: auto;
        border-radius: 20px;
    }

    .login-card {
        padding: 35px 25px;
    }

    .login-header h2 {
        font-size: 23px;
    }

    .login-options {
        align-items: flex-start;
        gap: 10px;
    }

    .secure-login {
        display: none;
    }
}
.login-error {
    background: #fff1f1;
    color: #c62828;
    border: 1px solid #f0b5b5;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
}