﻿/* ===========================
   RESET & BASE
=========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: "Poppins", "Segoe UI", sans-serif;
}

.login-page {
    height: 100vh;
    width: 100%;
    background: radial-gradient(circle at 15% 20%, #eaf1ff 0%, #f7faff 45%, #ffffff 100%);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 2vh 20px;
    overflow: hidden;
}

.login-wrapper {
    width: 100%;
    max-width: 1100px;
    height: 100%;
    display: flex;
    align-items: stretch;
    gap: 32px;
}

.login-panel {
    flex: 1.2;
    height: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* ===========================
   CARD
=========================== */

.login-box {
    width: 100%;
    max-width: 440px;
    max-height: 100%;
    background: #ffffff;
    padding: clamp(14px, 3vh, 32px) clamp(24px, 5vw, 40px);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(30, 64, 175, .10), 0 4px 12px rgba(30, 64, 175, .06);
    border: 1px solid #eef2f9;
    position: relative;
    animation: fadeUp .5s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(6px, 1.4vh, 14px);
}

    .login-box form {
        display: flex;
        flex-direction: column;
        gap: clamp(10px, 2vh, 18px);
        width: 100%;
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===========================
   LOGO
=========================== */

#logo {
    width: clamp(56px, 10vh, 96px);
    border-radius: 10px;
}


/* ===========================
   ALERT
=========================== */

.alert-success {
    border-radius: 12px;
    font-size: clamp(12px, 1.7vh, 14px);
}


/* ===========================
   HEADING
=========================== */

h1 {
    font-size: clamp(20px, 3.6vh, 28px);
    font-weight: 700;
    color: #101828;
    text-align: center;
    letter-spacing: -.3px;
}

#headline {
    text-align: center;
    color: #667085;
    font-size: clamp(12px, 1.8vh, 14px);
    line-height: 1.4;
}


/* ===========================
   INPUTS
=========================== */

.input-group {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
}

.input-group-text {
    background: #f5f9ff;
    border: 2px solid #e3e8f0;
    border-right: none;
    color: #2563eb;
    font-size: clamp(15px, 2.2vh, 18px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 14px;
}

    .input-group-text.toggle-eye {
        border-right: 2px solid #e3e8f0;
        border-left: none;
        cursor: pointer;
        color: #8a94a6;
    }

.form-control {
    height: clamp(40px, 6.5vh, 48px);
    font-size: clamp(13px, 1.9vh, 15px);
    border: 2px solid #e3e8f0;
    border-left: none;
    border-right: none;
}

    .form-control::placeholder {
        font-size: clamp(13px, 1.8vh, 14px);
        color: #8a94a6;
    }

    .form-control:focus {
        border-color: #2563eb;
        box-shadow: none;
        outline: none;
    }

.input-group:focus-within .input-group-text {
    border-color: #2563eb;
}


/* ===========================
   FORGOT PASSWORD
=========================== */

.forgot-row {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
}

a {
    text-decoration: none;
    font-weight: 600;
    color: #2563eb;
    font-size: clamp(12px, 1.7vh, 14px);
}

    a:hover {
        text-decoration: underline;
    }


/* ===========================
   BUTTON
=========================== */

.login-btn {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    height: clamp(40px, 7vh, 50px);
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #4f8cff);
    color: #ffffff;
    font-size: clamp(14px, 2vh, 16px);
    font-weight: 600;
    letter-spacing: .3px;
    transition: all .25s ease;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .22);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(37, 99, 235, .32);
        color: #ffffff;
    }

    .login-btn:active {
        transform: translateY(0);
        box-shadow: 0 6px 14px rgba(37, 99, 235, .25);
    }


/* ===========================
   FOOTER ROWS
=========================== */

.register-row,
.support-row {
    text-align: center;
    color: #667085;
    font-size: clamp(12px, 1.7vh, 14px);
}

    .support-row i {
        margin-right: 6px;
        color: #94a3b8;
    }


/* ===========================
   RIGHT SIDE — VISUAL PANEL
=========================== */

.login-panel-right {
    flex: 0.8;
}

.login-visual {
    position: relative;
    width: 100%;
    max-width: 340px;
    height: 90%;
    max-height: 520px;
    margin: auto;
    border-radius: 26px;
    background: linear-gradient(160deg, #3b6fd6 0%, #2f5cc0 55%, #294f9e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(30, 64, 175, .18);
}

    .login-visual::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(10, 20, 50, .18);
        z-index: 1;
    }

.login-visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: clamp(14px, 3vh, 28px);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(6px, 1.6vh, 14px);
    max-height: 100%;
}

.login-image-el {
    width: clamp(100px, 22vh, 170px);
    max-width: 60%;
    border-radius: 16px;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 14px 28px rgba(0,0,0,.18);
    animation: float 3.5s ease-in-out infinite;
}

.login-visual-content h2 {
    font-size: clamp(15px, 2.3vh, 19px);
    font-weight: 700;
}

.login-visual-content p {
    font-size: clamp(11px, 1.5vh, 13px);
    color: #cfe0ff;
    line-height: 1.5;
    max-width: 240px;
    margin: 0 auto;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: .10;
    background: #ffffff;
    z-index: 0;
}

.blob-1 {
    width: 160px;
    height: 160px;
    top: -40px;
    right: -40px;
}

.blob-2 {
    width: 120px;
    height: 120px;
    bottom: -30px;
    left: -30px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-14px);
    }

    100% {
        transform: translateY(0px);
    }
}


/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 991px) {

    .login-page {
        overflow-y: auto;
        align-items: flex-start;
    }

    .login-wrapper {
        flex-direction: column;
        height: auto;
    }

    .login-panel-right {
        display: none !important;
    }

    .login-box {
        padding: 20px 24px;
        max-height: none;
    }
}

@media (max-width: 420px) {

    .input-group,
    .forgot-row,
    .login-btn {
        max-width: 100%;
    }
}


/* ===========================
   VALIDATION
=========================== */

.form-group-custom {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.validation-message {
    display: block;
    margin-top: 6px;
    margin-left: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #dc3545;
    text-align: left;
}

.input-validation-error {
    border-color: #dc3545 !important;
}

.input-group:has(.input-validation-error) .input-group-text {
    border-color: #dc3545;
}


/* Professional Login Alert */

.login-alert {
    max-width: 360px;
    margin: 0 auto 18px auto;
    border-radius: 12px;
    border: none;
    background: #fff5f5;
    color: #dc3545;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    box-shadow: 0 6px 15px rgba(220,53,69,.15);
}

    .login-alert ul {
        margin: 0;
        padding-left: 18px;
    }

    .login-alert li {
        list-style: none;
    }

.form-group-custom {
    width: 100%;
    max-width: 360px;
    margin: 0 auto 18px;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #344054;
}