﻿/* ════════════════════════════════════════
   Parent Portal — SignIn.css
   Replace ~/Content/Parent_Css_Js/Css/SignIn.css
════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Fraunces:ital,wght@0,700;1,700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --teal-dark: #0d7377;
    --teal: #14a085;
    --teal-light: #1ec8a0;
    --teal-pale: #e6faf6;
    --teal-glow: rgba(20,160,133,0.28);
    --bg: #f0faf8;
    --white: #ffffff;
    --text-dark: #0f2027;
    --text-mid: #334155;
    --text-muted: #7a9494;
    --border: rgba(20,160,133,0.18);
    --shadow: 0 24px 64px rgba(13,115,119,0.14);
    --radius: 22px;
    --font-body: 'Nunito', sans-serif;
    --font-head: 'Fraunces', serif;
}

html, body {
    min-height: 100%;
    font-family: var(--font-body);
    background: var(--bg);
    overflow-x: hidden;
}

/* ── Ambient blobs ── */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(72px);
    pointer-events: none;
    z-index: 0;
}

.blob-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(20,160,133,0.18), transparent 70%);
    top: -100px;
    left: -80px;
}

.blob-2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(13,115,119,0.12), transparent 70%);
    bottom: -60px;
    right: -60px;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(30,200,160,0.10), transparent 70%);
    top: 50%;
    right: 20%;
}

/* ════════════════════════════════════════
   Two-column layout
════════════════════════════════════════ */
.page-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
}

/* ── Brand (left) ── */
.brand-panel {
    flex: 1;
    background: linear-gradient(145deg, var(--teal-dark) 0%, var(--teal) 60%, var(--teal-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
}

    .brand-panel::after {
        content: '';
        position: absolute;
        width: 500px;
        height: 500px;
        border: 80px solid rgba(255,255,255,0.06);
        border-radius: 50%;
        bottom: -200px;
        right: -150px;
        pointer-events: none;
    }

.brand-inner {
    max-width: 380px;
    color: #fff;
    animation: fadeUp 0.6s ease both;
}

.school-logo {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.18);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    overflow: hidden;
}

    .school-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.school-name {
    font-family: var(--font-head);
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 14px;
    color: #fff;
}

    .school-name em {
        font-style: italic;
        opacity: 0.85;
    }

.school-tagline {
    font-size: 14.5px;
    line-height: 1.65;
    opacity: 0.82;
    margin-bottom: 32px;
}

.brand-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .brand-features li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        font-weight: 600;
        opacity: 0.9;
    }

        .brand-features li i {
            font-size: 16px;
            color: rgba(255,255,255,0.7);
        }

/* ── Form (right) ── */
.form-panel {
    flex: 0 0 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: var(--bg);
}

.form-card {
    width: 100%;
    max-width: 400px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 44px 40px 38px;
    animation: fadeUp 0.55s cubic-bezier(0.22,1,0.36,1) both;
    animation-delay: 0.08s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Form header ── */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--teal-dark), var(--teal-light));
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px var(--teal-glow);
}

.form-header h2 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-header p {
    font-size: 13.5px;
    color: var(--text-muted);
}

/* ── Alert ── */
.alert-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #e11d48;
    margin-bottom: 20px;
}

    .alert-box i {
        font-size: 14px;
    }

/* ── Fields ── */
.field-group {
    margin-bottom: 18px;
}

    .field-group label {
        display: block;
        font-size: 12.5px;
        font-weight: 700;
        color: var(--text-mid);
        margin-bottom: 7px;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

        .field-group label i {
            color: var(--teal);
            margin-right: 5px;
        }

    .field-group input[type="text"],
    .field-group input[type="password"],
    .field-group input[type="email"] {
        width: 100%;
        padding: 13px 16px;
        border: 1.5px solid #e2e8f0;
        border-radius: 11px;
        font-family: var(--font-body);
        font-size: 14px;
        font-weight: 500;
        color: var(--text-dark);
        background: #f8fffe;
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    }

    .field-group input:focus {
        border-color: var(--teal);
        background: #fff;
        box-shadow: 0 0 0 3px var(--teal-glow);
    }

    .field-group input::placeholder {
        color: #b0c4be;
        font-weight: 400;
    }

/* Password toggle */
.password-wrap {
    position: relative;
}

    .password-wrap input {
        padding-right: 44px;
    }

.pwd-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
    width: auto;
}

    .pwd-toggle:hover {
        color: var(--teal);
    }

/* ── Remember row ── */
.remember-row {
    margin-bottom: 24px;
    margin-top: 4px;
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-mid);
    cursor: pointer;
    user-select: none;
}

    .remember-label input[type="checkbox"] {
        display: none;
    }

.custom-check {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    background: #f8fffe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 11px;
    color: #fff;
    font-weight: 700;
}

.remember-label input[type="checkbox"]:checked ~ .custom-check {
    background: var(--teal);
    border-color: var(--teal);
}

    .remember-label input[type="checkbox"]:checked ~ .custom-check::after {
        content: '✓';
    }

/* ── Submit ── */
.submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--teal-dark), var(--teal-light));
    border: none;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px var(--teal-glow);
    transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
    letter-spacing: 0.2px;
}

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 36px var(--teal-glow);
        filter: brightness(1.06);
    }

    .submit-btn:active {
        transform: translateY(0);
        box-shadow: 0 4px 12px var(--teal-glow);
    }

/* ── Footer note ── */
.form-footer {
    text-align: center;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 22px;
    line-height: 1.5;
}

/* ════════════════════════════════════════
   Responsive
════════════════════════════════════════ */
@media (max-width: 820px) {
    .brand-panel {
        display: none;
    }

    .form-panel {
        flex: 1;
        padding: 32px 20px;
    }

    .form-card {
        padding: 36px 28px 32px;
    }
}

@media (max-width: 420px) {
    .form-card {
        padding: 28px 20px 26px;
        border-radius: 16px;
    }

    .form-header h2 {
        font-size: 1.3rem;
    }
}
