﻿/* ============================================
   GC Tissa – Modern Student Sign Up
   Same theme as login-modern.css
   Link AFTER application.min.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset & base ─────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Background ───────────────────────────── */
body,
.mdl-layout.login {
    min-height: 100vh;
    font-family: 'Inter', 'Roboto', sans-serif;
    background: #f0f2f5;
}

/* body has text-transform:uppercase in aspx — keep it */

/* ── Layout centering ─────────────────────── */
.mdl-layout__content {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
    background: transparent !important;
}

/* ── Card ─────────────────────────────────── */
.mdl-card.mdl-card__login {
    width: 100% !important;
    max-width: 460px !important; /* slightly wider: 4 fields */
    min-height: unset !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 24px !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.10) !important;
    overflow: visible !important;
    padding: 0 !important;
    animation: cardIn .6s cubic-bezier(.22,.68,0,1.2) both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(32px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mdl-card__supporting-text {
    width: 100% !important;
    padding: 36px 36px 32px !important;
    overflow: visible !important;
}

/* ── Registration open banner ─────────────── */
.btn-danger.blinking,
p.btn-danger.blinking {
    width: 100%;
    margin: 0 0 12px 0 !important;
    padding: 9px 14px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #fee2e2, #fef3c7) !important;
    border: 1px solid #fca5a5 !important;
    color: #b91c1c !important;
    font-size: .8rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    animation: pulseAlert 2.4s ease-in-out infinite;
}

@keyframes pulseAlert {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .65;
    }
}

/* ── Logo ─────────────────────────────────── */
.mdl-cell img {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain;
    border-radius: 16px !important;
    padding: 10px !important;
    background: #fff !important;
    box-shadow: 0 4px 20px rgba(79,70,229,.35);
    margin-bottom: 4px;
}

/* ── Heading ──────────────────────────────── */
.login-name.text-color--white {
    display: block;
    text-align: center;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    letter-spacing: .02em;
    color: #111827 !important;
    margin-bottom: 4px;
}

    .login-name.text-color--white::after {
        content: '';
        display: block;
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, #4F46E5, #06B6D4);
        border-radius: 99px;
        margin: 10px auto 0;
    }

/* ── Session / error label ────────────────── */
.mdl-card__login span[id*="lbl_session"],
.mdl-card__login span[id$="sessionmesg"] {
    display: block;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #8f0808 !important;
    font-size: .84rem;
    font-weight: 500 !important;
}

/* ── MDL textfield overrides ──────────────── */
.mdl-textfield.full-size {
    width: 100% !important;
    margin-bottom: 6px;
    padding: 0 !important;
    position: relative;
}

.mdl-textfield__input,
input.mdl-textfield__input {
    width: 100% !important;
    height: 52px !important;
    padding: 14px 16px 0 !important;
    background: #f9fafb !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 12px !important;
    color: #111827 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    outline: none !important;
    transition: border-color .25s, background .25s, box-shadow .25s;
    caret-color: #4F46E5;
}

    .mdl-textfield__input:focus {
        border-color: #4F46E5 !important;
        background: #fff !important;
        box-shadow: 0 0 0 3px rgba(79,70,229,.15) !important;
    }

    .mdl-textfield__input::placeholder {
        color: transparent;
    }

/* Floating label */
.mdl-textfield__label {
    position: absolute !important;
    top: 50% !important;
    left: 16px !important;
    transform: translateY(-50%) !important;
    color: #9ca3af !important;
    font-size: .9rem !important;
    pointer-events: none;
    transition: all .2s ease;
    background: transparent !important;
    text-transform: none !important; /* override body uppercase for labels */
}

.mdl-textfield__input:focus ~ .mdl-textfield__label,
.mdl-textfield__input:not(:placeholder-shown) ~ .mdl-textfield__label,
.mdl-textfield--is-focused .mdl-textfield__label,
.mdl-textfield--is-dirty .mdl-textfield__label {
    top: 10px !important;
    font-size: 1rem !important;
    color: #4F46E5 !important;
    transform: translateY(0) !important;
}

/* ── Links ────────────────────────────────── */
a.login-link {
    font-size: .82rem !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    transition: color .2s;
    display: inline-block;
    margin-top: 4px;
}

    a.login-link:hover {
        color: #4F46E5 !important;
    }

/* "have account?" link in submit row */
.submit-cell a[href*="login"] {
    font-size: 1rem !important;
    color: #4F46E5 !important;
    font-weight: 500 !important;
    white-space: nowrap;
    text-decoration: none !important;
    flex-shrink: 0;
    text-transform: none;
}

    .submit-cell a[href*="login"]:hover {
        color: #111827 !important;
    }

/* ── Submit cell ──────────────────────────── */
.submit-cell {
    display: flex !important;
    align-items: center !important;
    margin-top: 10px !important;
    gap: 12px;
}

    .submit-cell > a[href="index.aspx"],
    .submit-cell > a[href*="index"] {
        display: block !important;
        flex: 1;
        text-decoration: none !important;
    }

/* Sign Up button  (class: color--light-blue) */
.mdl-button.color--light-blue,
input[type=submit].color--light-blue,
.mdl-card__login .mdl-button {
    width: 100% !important;
    height: 50px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%) !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .95rem !important;
    font-weight: 600 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 18px rgba(79,70,229,.40) !important;
    transition: transform .18s, box-shadow .18s, filter .18s !important;
}

    .mdl-card__login .mdl-button:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 28px rgba(79,70,229,.55) !important;
        filter: brightness(1.08) !important;
    }

    .mdl-card__login .mdl-button:active {
        transform: translateY(0) !important;
        filter: brightness(.95) !important;
    }

/* ── Help Desk panel ──────────────────────── */
.panel.panel-default {
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    overflow: hidden;
    margin-top: 4px;
    background: #fff !important;
}

.panel-heading {
    background: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 10px 16px !important;
    font-size: .85rem !important;
    color: #374151 !important;
    font-weight: 600 !important;
}

    .panel-heading small {
        background: #fee2e2 !important;
        color: #dc2626 !important;
        font-size: .72rem !important;
        padding: 3px 10px !important;
        border-radius: 99px !important;
        font-weight: 600 !important;
    }

.panel-body {
    padding: 12px 16px 14px !important;
    background: #fff !important;
}

/* Blink / technical support link */
a.blink_text {
    color: #4F46E5 !important;
    font-weight: 500 !important;
    font-size: .85rem !important;
    text-decoration: none !important;
    animation: pulseLink 2.4s ease-in-out infinite !important;
}

    a.blink_text:hover {
        color: #7C3AED !important;
        text-decoration: underline !important;
    }

@keyframes pulseLink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .45;
    }
}

.panel-body span {
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

/* ── Admission closed panel ───────────────── */
.panel.panel-info {
    border: 1px solid #bfdbfe !important;
    border-radius: 12px !important;
    background: #eff6ff !important;
}

    .panel.panel-info .panel-heading {
        background: #dbeafe !important;
        border-bottom: 1px solid #bfdbfe !important;
        color: #1e40af !important;
    }

.col-lg-12 img {
    border-radius: 12px;
}

/* ── MDL grid ─────────────────────────────── */
.mdl-grid {
    padding: 0 !important;
    gap: 12px 0;
}

.mdl-cell {
    margin: 0 !important;
    padding: 0 !important;
}

    /* ── Divider before form fields ───────────── */
    .mdl-cell:nth-child(3) {
        border-top: 1px solid #f3f4f6;
        padding-top: 14px !important;
    }

/* ── Scrollbar ────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 99px;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 480px) {
    .mdl-card__supporting-text {
        padding: 24px 18px 20px !important;
    }

    .mdl-card.mdl-card__login {
        border-radius: 18px !important;
    }

    .submit-cell {
        flex-direction: column;
        align-items: stretch !important;
    }
}
