/* ============================================================
   Digital ULB - Portal shared styles
   Used by: Login.master (Index1/IndexUser), Index.aspx showcase
   and the public portal pages (additive).
   ============================================================ */

/* ---------- Animated background blobs ---------- */
.portal-blobs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.portal-blobs span {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
}

.portal-blobs span:nth-child(1) {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.35) 0%, transparent 70%);
    top: -120px;
    left: -100px;
    animation: portalBlobFloat 18s ease-in-out infinite;
}

.portal-blobs span:nth-child(2) {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(86, 171, 255, 0.35) 0%, transparent 70%);
    bottom: -140px;
    right: -80px;
    animation: portalBlobDrift 22s ease-in-out infinite;
}

.portal-blobs span:nth-child(3) {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255, 203, 107, 0.3) 0%, transparent 70%);
    top: 45%;
    left: 55%;
    animation: portalBlobFloat 26s ease-in-out infinite reverse;
}

@keyframes portalBlobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

@keyframes portalBlobDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, -40px) scale(1.15); }
}

/* ---------- Entrance animation utility ---------- */
.portal-animate {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.portal-animate.portal-in {
    opacity: 1;
    transform: translateY(0);
}

@keyframes portalFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Login master shell (Login.master)
   ============================================================ */
.portal-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
}

.portal-shell {
    max-width: 1340px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* ---------- Header ---------- */
.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 16px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    animation: portalFadeUp 0.6s ease;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.portal-logo-img {
    max-height: 70px;
    max-width: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.portal-brand h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #ff9a9e, #fad0c4, #a1c4fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.portal-brand p {
    margin: 3px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.portal-nav ul {
    display: flex;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.portal-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 18px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-block;
}

.portal-nav a:hover,
.portal-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd166;
}

.portal-nav .dropdown {
    position: relative;
}

.portal-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 200;
}

.portal-nav .dropdown:hover .dropdown-menu {
    display: block;
}

.portal-nav .dropdown-menu a {
    display: block;
    border-radius: 0;
    padding: 10px 22px;
    font-size: 0.95rem;
}

.portal-nav .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd166;
    padding-left: 28px;
}

/* ---------- Main two-column body ---------- */
.portal-main {
    flex: 1;
    display: flex;
    gap: 30px;
    align-items: stretch;
    padding: 30px 0;
}

.portal-about {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: portalFadeUp 0.7s ease 0.05s both;
}

.portal-about h2 {
    font-size: 2.6rem;
    margin: 0 0 18px;
    color: #ffd166;
    line-height: 1.15;
    position: relative;
    padding-bottom: 14px;
}

.portal-about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90px;
    height: 5px;
    background: linear-gradient(to right, #ff6b6b, #ffa502);
    border-radius: 5px;
}

.portal-about p {
    line-height: 1.8;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 92%;
}

.portal-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.portal-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 9px 16px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
}

.portal-chip i {
    color: #ffd166;
}

.portal-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.portal-login {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ---------- Glass card (login / register) ---------- */
.portal-card {
    display: none;
    width: 100%;
    max-width: 460px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 30px 32px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    animation: portalFadeUp 0.6s ease;
}

.portal-card-active {
    display: block;
}

.portal-card-title {
    text-align: center;
    margin-bottom: 26px;
}

.portal-card-title .portal-card-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(135deg, #ff6b6b, #ffa502);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.45);
}

.portal-card-title h2 {
    margin: 0 0 6px;
    font-size: 1.7rem;
    background: linear-gradient(to right, #ff9a9e, #fad0c4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.portal-card-title p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.98rem;
}

.portal-field {
    margin-bottom: 18px;
}

.portal-field > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.portal-field > label i {
    color: #ffd166;
    width: 18px;
}

.portal-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

select.portal-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 42px;
}

select.portal-input option {
    background: #16213e;
    color: #fff;
}

.portal-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 165, 2, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 165, 2, 0.22);
}

.portal-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ---------- Input with reveal eye ---------- */
.portal-input-wrap {
    position: relative;
}

.portal-input-wrap .portal-input,
.portal-input-wrap input[type="password"],
.portal-input-wrap input[type="text"] {
    padding-right: 46px;
}

.portal-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 8px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.portal-eye:hover {
    color: #ffd166;
}

/* ---------- Buttons ---------- */
.portal-btn {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.portal-btn-primary {
    background: linear-gradient(to right, #ff6b6b, #ffa502);
    color: #fff;
    box-shadow: 0 10px 22px rgba(255, 107, 107, 0.3);
}

.portal-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 28px rgba(255, 107, 107, 0.45);
}

.portal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.portal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
}

.portal-btn-ghost {
    background: transparent;
    color: #ffd166;
    border: 1px solid rgba(255, 214, 102, 0.5);
}

.portal-btn-ghost:hover {
    background: rgba(255, 214, 102, 0.12);
}

.portal-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.portal-btn-row .portal-btn {
    flex: 1;
}

.portal-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.portal-card-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
    text-align: center;
}

.portal-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.98rem;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.portal-link:hover {
    color: #ffd166;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.portal-link i {
    margin-right: 6px;
}

.portal-card-actions {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-quickpay-btn {
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    padding: 5px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.portal-quickpay-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(255, 107, 107, 0.4);
}

.portal-typing {
    margin-top: 22px;
    text-align: center;
}

.portal-typing > span {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 10px;
    position: relative;
}

.portal-typing-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.portal-typing-icons input[type="image"] {
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    padding: 3px;
}

.portal-typing-icons input[type="image"]:hover {
    transform: translateY(-3px);
    border-color: #ffd166;
}

.portal-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 4px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.portal-agree input {
    margin-top: 3px;
    accent-color: #ffa502;
}

.portal-agree a {
    color: #ffd166;
}

/* ---------- Footer ---------- */
.portal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 26px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.portal-policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal-policy-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.portal-policy-links a:hover {
    color: #ffd166;
}

.portal-policy-links a i {
    margin-right: 5px;
    color: #ffd166;
}

.portal-copyright {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .portal-header {
        flex-direction: column;
        gap: 14px;
        padding: 18px;
    }

    .portal-main {
        flex-direction: column;
        padding: 20px 0;
    }

    .portal-about {
        text-align: center;
    }

    .portal-about h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .portal-about p {
        margin: 0 auto;
        max-width: 100%;
    }

    .portal-chips {
        justify-content: center;
    }

    .portal-login {
        padding-top: 8px;
    }

    .portal-card {
        max-width: 100%;
    }
}

@media (max-width: 620px) {
    .portal-shell {
        padding: 12px;
    }

    .portal-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .portal-about h2 {
        font-size: 2rem;
    }

    .portal-card {
        padding: 24px 20px;
    }

    .portal-footer {
        justify-content: center;
        text-align: center;
    }
}

/* ============================================================
   Showcase (services grid + stats band) - Index.aspx
   ============================================================ */
.portal-showcase {
    padding: 70px 50px;
    position: relative;
}

.portal-section-head {
    text-align: center;
    margin-bottom: 46px;
}

.portal-section-head h2 {
    font-size: 2.4rem;
    margin: 0 0 14px;
    background: linear-gradient(to right, #ff9a9e, #fad0c4, #a1c4fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.portal-section-head p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin: 0 auto;
    max-width: 680px;
    line-height: 1.7;
}

.portal-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.portal-service-card {
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.portal-service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.14), rgba(86, 171, 255, 0.16));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.45s ease;
}

.portal-service-card:hover::before {
    transform: scaleY(1);
}

.portal-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 32px rgba(0, 0, 0, 0.35);
}

.portal-service-card i {
    position: relative;
    font-size: 2.4rem;
    margin-bottom: 14px;
    display: inline-block;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.portal-service-card h3 {
    position: relative;
    margin: 0 0 8px;
    color: #ffd166;
    font-size: 1.25rem;
}

.portal-service-card p {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.6;
}

.portal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
    margin-top: 56px;
}

.portal-stat {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 26px 16px;
    text-align: center;
    transition: all 0.4s ease;
}

.portal-stat:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 214, 102, 0.5);
}

.portal-stat-num {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(to right, #ff9a9e, #fad0c4, #a1c4fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.portal-stat-label {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.98rem;
}

@media (max-width: 768px) {
    .portal-showcase {
        padding: 50px 24px;
    }

    .portal-services {
        grid-template-columns: 1fr;
    }

    .portal-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
