﻿
.lg-section {
    min-height: calc(100vh - 220px);
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

    /* Abstract Background Decoration */
    .lg-section::before {
        content: '';
        position: absolute;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(36,52,116,0.08) 0%, rgba(36,52,116,0) 70%);
        top: -200px;
        left: -200px;
        border-radius: 50%;
        z-index: 0;
        pointer-events: none;
    }

    .lg-section::after {
        content: '';
        position: absolute;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(36,52,116,0.05) 0%, rgba(36,52,116,0) 70%);
        bottom: -150px;
        right: -100px;
        border-radius: 50%;
        z-index: 0;
        pointer-events: none;
    }

.lg-card-wrapper {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
}

.lg-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0,0,0,0.04);
    padding: 44px 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-top: 5px solid #243474;
    box-sizing: border-box;
}

.lg-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.lg-icon-circle {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(135deg, #eef2ff 0%, #dbe5ff 100%);
    color: #243474;
    box-shadow: 0 4px 12px rgba(36, 52, 116, 0.18);
}

.lg-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.5px;
}

.lg-card-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #64748b;
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.6;
}

.lg-input-group {
    position: relative;
    margin-bottom: 8px;
}

    .lg-input-group i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        color: #94a3b8;
        transition: color 0.3s;
        pointer-events: none;
        z-index: 1;
    }

    .lg-input-group input[type="text"],
    .lg-input-group input[type="password"] {
        width: 100%;
        height: 50px;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        padding: 0 16px 0 46px;
        font-family: 'Outfit', sans-serif;
        font-size: 14.5px;
        color: #334155;
        background: #f8fafc;
        transition: all 0.3s ease;
        outline: none;
        box-sizing: border-box;
        -webkit-appearance: none;
        display: block;
    }

        .lg-input-group input[type="text"]::placeholder,
        .lg-input-group input[type="password"]::placeholder {
            color: #94a3b8;
        }

        .lg-input-group input[type="text"]:focus,
        .lg-input-group input[type="password"]:focus {
            background: #ffffff;
            border-color: #243474;
            box-shadow: 0 0 0 4px rgba(36, 52, 116, 0.12);
        }

.lg-validation {
    min-height: 20px;
    margin-bottom: 12px;
}

    .lg-validation span {
        font-family: 'Outfit', sans-serif;
        font-size: 12.5px;
        color: #ef4444;
        display: block;
    }

.lg-msg {
    min-height: 20px;
    margin-bottom: 12px;
    text-align: center;
}

    .lg-msg span {
        font-family: 'Outfit', sans-serif;
        font-size: 14px;
        color: #ef4444;
        font-weight: 500;
    }

.lg-btn-wrapper {
    margin-top: 8px;
}

    /* Login Button */
    .lg-btn-wrapper input[type="submit"] {
        width: 100%;
        height: 50px;
        border: none;
        border-radius: 12px;
        background: linear-gradient(135deg, #243474 0%, #1b285c 100%);
        color: #ffffff;
        font-family: 'Outfit', sans-serif;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 6px 18px rgba(36, 52, 116, 0.28);
    }

        /* Hover */
        .lg-btn-wrapper input[type="submit"]:hover {
            background: linear-gradient(135deg, #30479a 0%, #243474 100%);
            box-shadow: 0 10px 24px rgba(36, 52, 116, 0.40);
            transform: translateY(-2px);
        }

        /* Click */
        .lg-btn-wrapper input[type="submit"]:active {
            transform: translateY(0);
            box-shadow: 0 4px 12px rgba(36, 52, 116, 0.30);
        }

/* Links group */
.lg-links-group {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

    .lg-links-group a {
        font-family: 'Outfit', sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: #243474;
        text-decoration: none;
        transition: color 0.2s;
        text-align: center;
    }

        .lg-links-group a:hover {
            color: #1b285c;
            text-decoration: underline;
        }

/* ===== Responsive: Tablet (max 1024px) ===== */
@media screen and (max-width: 1024px) {
    .lg-section {
        padding: 50px 20px;
    }
}

/* ===== Responsive: Mobile (max 768px) ===== */
@media screen and (max-width: 768px) {
    .lg-section {
        padding: 40px 16px;
        align-items: flex-start;
        padding-top: 48px;
    }

    .lg-card-wrapper {
        max-width: 100%;
    }

    .lg-card {
        padding: 36px 28px;
        border-radius: 20px;
    }

    .lg-icon-circle {
        width: 58px;
        height: 58px;
        font-size: 24px;
    }

    .lg-card-title {
        font-size: 24px;
    }

    .lg-card-subtitle {
        margin-bottom: 24px;
    }
}

/* ===== Responsive: Small Mobile (max 480px) ===== */
@media screen and (max-width: 480px) {
    .lg-section {
        padding: 28px 12px;
        min-height: calc(100vh - 180px);
    }

    .lg-card {
        padding: 26px 18px;
        border-radius: 18px;
        border-top-width: 4px;
    }

    .lg-icon-circle {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .lg-icon-wrapper {
        margin-bottom: 14px;
    }

    .lg-card-title {
        font-size: 22px;
    }

    .lg-card-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .lg-input-group input[type="text"],
    .lg-input-group input[type="password"] {
        height: 46px;
        font-size: 14px;
    }

    .lg-btn-wrapper input[type="submit"] {
        height: 46px;
        font-size: 14px;
    }

    .lg-links-group {
        gap: 10px;
        margin-top: 18px;
        padding-top: 16px;
    }

        .lg-links-group a {
            font-size: 13px;
        }
}

/* ===== Responsive: Extra-Small (max 360px) ===== */
@media screen and (max-width: 360px) {
    .lg-card {
        padding: 20px 14px;
        border-radius: 16px;
    }

    .lg-card-title {
        font-size: 20px;
    }

    .lg-section::before,
    .lg-section::after {
        display: none;
    }
}

/* Popup Box Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.popup-box {
    background: #ffffff;
    padding: 30px 36px;
    border-radius: 16px;
    text-align: center;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: popupAnim 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
}

.popup-message {
    font-size: 15px;
    color: #1e293b;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.close-btn {
    background: linear-gradient(135deg, #14bdee, #0fa8d5);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: 0.3s;
}

    .close-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(20, 189, 238, 0.3);
    }

@keyframes popupAnim {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media screen and (max-width: 480px) {
    .popup-box {
        padding: 24px 18px;
        border-radius: 14px;
    }

    .popup-message {
        font-size: 14px;
    }
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .password-toggle svg {
        transition: .25s ease;
    }

    .password-toggle:hover svg path,
    .password-toggle:hover svg circle {
        stroke: #243474;
    }
