﻿/* ===== Base ===== */
body {
    background: linear-gradient(180deg, #eef4f9 0%, #f7fafc 55%, #ffffff 100%);
    font-family: "Segoe UI", Arial, sans-serif;
    color: #233142;
}

.page-wrap {
    padding: 10px 0 5px;
}

.hero-panel,
.content-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== Hero ===== */
.hero-panel {
    padding: 28px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0c4f8a, #1565a9);
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
}

.hero-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.hero-subtitle {
    margin-top: 10px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
    line-height: 1.7;
}

/* ===== Auth Layout ===== */
.auth-row {
    display: flex;
    flex-wrap: wrap;
}

.auth-col {
    display: flex;
    margin-bottom: 20px;
}

.portal-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* ===== Card ===== */
.portal-card {
    background: #fff;
    border: 1px solid #e6edf4;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* ===== Card Header ===== */
.portal-card-header {
    padding: 16px;
    border-bottom: 1px solid #e6edf4;
    background: linear-gradient(180deg, #fcfeff 0%, #f4f9fd 100%);
    text-align: left;
}

    .portal-card-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        color: #163b63;
    }

.subtext {
    margin-top: 6px;
    font-size: 12.5px;
    color: #6e8194;
}

/* ===== Card Body ===== */
.portal-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 15px;
    font-size: 13px;
    line-height: 1.45;
}

/* ===== Feature List ===== */
.feature-list {
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
    padding-left: 60px;
}

    .feature-list li {
        display: flex;
        align-items: flex-start;
        margin-bottom: 6px;
        font-size: 13px;
        color: #33485c;
    }

    .feature-list .icon {
        min-width: 18px;
        margin-right: 6px;
        color: #2f6fae;
    }

    .feature-list strong {
        margin-right: 3px;
        color: #163b63;
    }

/* ===== Quick Start ===== */
.quick-start-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 12px;
    background: #f4f9ff;
    border: 1px solid #dcebf7;
    border-radius: 10px;
}

.quick-start-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.quick-start-text {
    font-size: 13px;
    color: #4d6174;
}

    .quick-start-text strong {
        color: #1f3f66;
    }

.register-btn {
    padding: 6px 16px;
    font-weight: 600;
    border-radius: 6px;
}

/* ===== Form ===== */
.login-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.form-control {
    border-radius: 8px;
}

.control-label {
    font-weight: 600;
}

.validation-summary-errors {
    margin-bottom: 15px;
    padding: 12px;
    color: #b94a48;
    background: #fff4f4;
    border: 1px solid #f0caca;
    border-radius: 10px;
}

.forgot-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12.5px;
    color: #0f5fa7;
    text-decoration: none;
}

    .forgot-link:hover {
        text-decoration: underline;
    }

.signin-options {
    display: flex;
    justify-content: center; /* centers horizontally */
    margin-top: 5px;
    padding-right: 35px;
}

/* ===== Sign In Button ===== */
.premium-signin-btn {
    display: block;
    width: 150px;
    height: 42px;
    margin: 10px auto 0;
    padding: 0 20px;
    font-size: 13.5px;
    font-weight: 700;
    background: linear-gradient(180deg, #2b83cf 0%, #166fbb 100%);
    border-color: #166fbb;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(22, 111, 187, 0.18);
}

    .premium-signin-btn:hover,
    .premium-signin-btn:focus {
        background: linear-gradient(180deg, #2478bf 0%, #1366ad 100%);
        border-color: #1366ad;
    }

/* ===== Busy Indicator ===== */
.login-busy {
    display: none;
    margin-top: 10px;
    font-weight: 600;
    text-align: center;
    color: #0f5fa7;
}

/* ===== Apps Section ===== */
.apps-section-header {
    margin-bottom: 20px;
    padding: 16px 18px;
    color: #fff;
    background: linear-gradient(135deg, #0c4f8a, #1565a9);
    border-radius: 12px;
}

.apps-header-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.apps-header-icon-lg {
    flex-shrink: 0;
    font-size: 32px;
    line-height: 1;
    color: #fff;
}

.apps-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.apps-section-subtitle {
    margin-top: 3px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

/* ===== App Grid ===== */
.app-grid > [class*='col-'] {
    margin-bottom: 10px;
}

.app-card {
    display: block;
    height: 100%;
    padding: 22px;
    text-align: center;
    text-decoration: none !important;
    background: #fff;
    border: 3px solid #e6edf4;
    border-radius: 16px;
    transition: all 0.2s ease;
}

    .app-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 26px rgba(26, 50, 77, 0.14);
    }

.app-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
}

    .app-icon-wrap img {
        max-width: 54px;
        max-height: 54px;
    }

.app-card-title {
    margin-bottom: 8px;
    font-weight: 700;
    color: #163b63;
}

.app-card-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #607284;
}

/* ===== Animation ===== */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .auth-row,
    .auth-col,
    .portal-panel {
        display: block;
    }

    .quick-start-box {
        margin-top: 12px;
    }

    .premium-signin-btn {
        margin: 16px auto 0;
    }
}

@media (max-width: 767px) {
    .hero-panel,
    .content-container {
        margin-left: 10px;
        margin-right: 10px;
    }

    .quick-start-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .register-btn,
    .premium-signin-btn {
        width: 100%;
        max-width: 220px;
    }
}
.remember-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #54697c;
    cursor: pointer;
    margin: 0;
}

    .remember-wrap input[type="checkbox"] {
        margin: 0;
        transform: scale(1.05); /* slightly bigger for better UX */
        cursor: pointer;
    }
