﻿body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    height: 100vh;
    display: flex;
}

.left-panel {
    width: 65%;
}

    .left-panel img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.right-panel {
    width: 35%;
    background: url('/Images/bgLogin.png') no-repeat center center;
    background-size: cover;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-panel, .right-panel {
    flex: 1;
    min-height: 100vh;
}

.login-wrapper {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.login-card {
    background: #9ec6d8;
    padding: 40px 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    margin: auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    box-sizing: border-box;
}

.logo img {
    width: 120px;
    margin-bottom: 10px;
}

.portal-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #1a3c4e;
}

/* LOGIN INPUT GROUP */
.login-input-group {
    display: flex;
    align-items: center;
    width: 100%;
    background: #fff;
    border-radius: 30px;
    border: 1px solid #ccc;
    padding: 0 12px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

    .login-input-group:hover,
    .login-input-group:focus-within {
        border-color: #1c6f8a;
        box-shadow: 0 0 6px rgba(28, 111, 138, 0.4);
    }

.login-input-icon {
    flex-shrink: 0;
    color: #555;
    display: flex;
    align-items: center;
    padding-right: 8px;
}

.login-card .input-field {
    flex: 1;
    width: 0;
    min-width: 0;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 14px 0 !important;
    font-size: 16px !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

/* FORGOT PASSWORD + SIGN IN ROW */
.login-card .row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    margin: 0;
}

    .login-card .row a {
        color: #1a3c4e;
        font-size: 14px;
        text-decoration: none;
    }

        .login-card .row a:hover {
            text-decoration: underline;
        }

.btn-signin {
    background-color: #1a6fa8 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    cursor: pointer;
    white-space: nowrap;
}

    .btn-signin:hover {
        background-color: #155a8a !important;
    }

/* FOOTER */
.footer {
    margin-top: 20px;
    font-size: 12px;
    color: #555;
    text-align: center;
}

/* ─── RESET PASSWORD MODAL ─────────────────────────────── */
.custom-modal .modal-dialog {
    max-width: 380px;
    width: 90%;
}

.custom-modal .modal-card {
    background: #9ec6d8;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    overflow: hidden;
}

.custom-modal .modal-header {
    background: #9ec6d8;
    border-bottom: none !important;
    padding: 30px 30px 10px 30px;
    text-align: center;
}

.custom-modal .modal-title {
    font-size: 22px;
    font-weight: bold;
    color: #1a3c4e;
    width: 100%;
}

.custom-modal .modal-body {
    background: #9ec6d8;
    padding: 10px 30px 20px 30px;
}

    .custom-modal .modal-body .input-field {
        width: 100% !important;
        padding: 14px 18px !important;
        border-radius: 30px !important;
        border: 1px solid #ccc !important;
        font-size: 16px !important;
        background: #fff !important;
        box-sizing: border-box !important;
        outline: none !important;
        box-shadow: none !important;
    }

        .custom-modal .modal-body .input-field:focus,
        .custom-modal .modal-body .input-field:hover {
            border-color: #1c6f8a !important;
            box-shadow: 0 0 6px rgba(28, 111, 138, 0.4) !important;
        }

.custom-modal .modal-footer {
    background: #9ec6d8;
    border-top: none !important;
    padding: 0 30px 30px 30px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.custom-modal .btn-signin.w-100 {
    width: 100% !important;
    padding: 12px !important;
    font-size: 15px !important;
    border-radius: 30px !important;
}

.btn-close-link {
    background: none !important;
    border: none !important;
    color: #1a3c4e !important;
    font-size: 14px !important;
    cursor: pointer;
    text-decoration: underline;
    padding: 0 !important;
}

    .btn-close-link:hover {
        color: #155a8a !important;
    }

/* MOBILE VIEW */
@media screen and (max-width: 768px) {
    .left-panel {
        display: none;
    }

    .right-panel {
        width: 100%;
        padding: 20px;
    }

    .login-card {
        width: 100%;
        max-width: 350px;
    }

    .login-input-group {
        border-radius: 30px;
    }

    .login-input-icon {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

        .login-input-icon i {
            display: none !important;
        }

    .custom-modal .modal-dialog {
        width: 95%;
        margin: auto;
    }
}
