/* ===== Color Variables ===== */
:root {
    --color-primary-beige: #E8D7C8;
    --color-primary-orange: #E66C37;
    --color-primary-teal: #00A19B;
    --color-primary-purple: #662D91;
    --color-primary-navy: #003B5C;
    
    --color-secondary-dark-blue: #1B365D;
    --color-secondary-pink: #D62599;
    
    --color-text-dark: #333333;
    --color-text-medium: #666666;
    --color-text-light: #FFFFFF;
    
    --color-admin: #009CA5;
    --color-teacher: #FF8A3D;
    --color-student: #7C57CB;
    --color-parent: #D62599;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Museo Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    background: #fff;
    position: relative;
}

/* Background Image Layer */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/splash.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Wavy Cutout Layers */
.wavy-cutout-layer-1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    z-index: 2;
    pointer-events: none;
}

.wavy-cutout-layer-2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    z-index: 3;
    pointer-events: none;
}

.wavy-cutout-layer-3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    z-index: 4;
    pointer-events: none;
}

/* Blue Dithering Layer */
.blue-dithering {
    position: fixed;
    bottom: 105px;
    left: 0px;
    width: 250px;
    height: 400px;
    z-index: 5;
    pointer-events: none;
}

/* Logo Layer */
.logo {
    position: fixed;
    top: 40px;
    left: 80px;
    z-index: 100;
}

.logo img {
    height: 80px;
    width: auto;
}

/* Content Text Layer */
.content-text {
    position: fixed;
    top: 180px;
    left: 80px;
    max-width: 500px;
    z-index: 100;
}

.content-text h1 {
    font-size: 52px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-primary-navy);
    margin-bottom: 0;
}

.content-text .highlight-text {
    color: #7A6F5D;
    font-weight: 500;
}

.accent-line {
    width: 100px;
    height: 5px;
    background: var(--color-primary-orange);
    margin: 25px 0 30px 0;
}

.content-text p {
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text-dark);
    font-weight: 400;
    margin-bottom: 35px;
}

/* Flags Layer */
.flags {
    position: fixed;
    top: 460px;
    left: 80px;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.flag {
    width: 70px;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Colorful Wave Layers */
.color-wave {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 400px;
    pointer-events: none;
}

.wave-1 {
    z-index: 1;
}

.wave-2 {
    z-index: 2;
    opacity: 0.34;
}

.wave-3 {
    z-index: 3;
    opacity: 0.31;
}

.wave-4 {
    z-index: 4;
    opacity: 0.29;
}

/* Bottom Footer Layer */
.bottom-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-secondary-dark-blue);
    padding: 30px 80px;
    z-index: 5;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.footer-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    filter: brightness(0) invert(1);
    margin-top: 0;
}

.footer-text {
    padding-top: 2px;
}

.footer-text h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.footer-text h4 a {
    color: white;
    text-decoration: underline;
}

.footer-text h4 a:hover {
    opacity: 0.8;
}

.footer-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.4;
}

.footer-divider {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 20px;
}

.footer-website {
    max-width: 280px;
}

/* Login Card Layer */
.login-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 620px;
    width: 100%;
    position: fixed;
    top: 45%;
    left: 80%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.login-card h2 {
    font-size: 32px;
    color: var(--color-text-dark);
    margin-bottom: 10px;
    font-weight: 500;
}

.login-card .subtitle {
    color: var(--color-text-medium);
    margin-bottom: 40px;
    font-size: 16px;
}

.user-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.user-type-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.user-type-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Admin card - non-clickable container */
.administrators {
    cursor: default;
}

.administrators:hover {
    box-shadow: none;
    transform: none;
}

.admin-sub-panels {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.admin-sub-panel {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: block;
}

.admin-sub-panel:hover {
    background: #e8f4f5;
    border-color: var(--color-admin);
    box-shadow: 0 2px 6px rgba(0, 154, 165, 0.1);
}

.admin-sub-panel p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-text-medium);
}

.admin-sub-panel:hover p {
    color: var(--color-admin);
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.icon-wrapper svg,
.icon-wrapper img {
    width: 30px;
    height: 30px;
    fill: white;
    filter: brightness(0) invert(1);
}

.administrators .icon-wrapper {
    background: var(--color-admin);
}

.teachers .icon-wrapper {
    background: var(--color-teacher);
}

.students .icon-wrapper {
    background: var(--color-student);
}

.parents .icon-wrapper {
    background: var(--color-parent);
}

/* Left-aligned clickable cards */
.teachers,
.students,
.parents {
    text-align: left;
}

.teachers .icon-wrapper,
.students .icon-wrapper,
.parents .icon-wrapper {
    margin-left: 0;
    margin-right: auto;
}

.user-type-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 500;
}

.administrators h3 {
    color: var(--color-admin);
}

.teachers h3 {
    color: var(--color-teacher);
}

.students h3 {
    color: var(--color-student);
}

.parents h3 {
    color: var(--color-parent);
}

.user-type-card p {
    font-size: 14px;
    color: var(--color-text-medium);
    line-height: 1.5;
    margin-bottom: 10px;
}

.arrow {
    width: 20px;
    height: 20px;
}

.administrators .arrow {
    fill: var(--color-admin);
}

.teachers .arrow {
    fill: var(--color-teacher);
}

.students .arrow {
    fill: var(--color-student);
}

.parents .arrow {
    fill: var(--color-parent);
}

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .logo {
        left: 30px;
        top: 30px;
    }

    .logo img {
        height: 60px;
    }

    .content-text {
        left: 30px;
        top: 120px;
        max-width: 400px;
    }

    .content-text h1 {
        font-size: 42px;
    }

    .content-text p {
        font-size: 18px;
    }

    .flags {
        left: 30px;
        top: 390px;
    }

    .login-card {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 80px auto 40px;
        max-width: 600px;
    }

    .bottom-footer {
        padding: 20px 30px;
        position: relative;
    }

    .footer-content {
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-item {
        flex: 1 1 45%;
    }

    .footer-divider {
        display: none;
    }

    .footer-website {
        flex: 1 1 100%;
    }

    .blue-dithering {
        display: none;
    }
    
    .color-wave {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .background-image {
        background-position: center center;
        position: absolute;
    }
    
    .wavy-cutout-layer-1,
    .wavy-cutout-layer-2,
    .wavy-cutout-layer-3 {
        opacity: 0.8;
        position: absolute;
        width: 150%;
    }

    .logo {
        position: relative;
        left: 0;
        top: 0;
        padding: 20px;
        order: 1;
    }

    .logo img {
        height: 50px;
    }

    .content-text {
        position: relative;
        left: 0;
        top: 0;
        padding: 30px 20px;
        max-width: 100%;
        order: 2;
    }

    .content-text h1 {
        font-size: 28px;
    }

    .content-text p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .accent-line {
        width: 80px;
        height: 4px;
        margin: 15px 0 20px 0;
    }

    .flags {
        position: relative;
        left: 0;
        top: 0;
        padding: 0 20px 20px 20px;
        padding-top: 0;
        order: 3;
    }
    
    .flag {
        width: 50px;
    }

    .login-card {
        position: relative;
        padding: 30px 20px;
        max-width: 100%;
        order: 4;
    }

    .login-card h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .login-card .subtitle {
        margin-bottom: 30px;
        font-size: 15px;
    }

    .user-types {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .user-type-card {
        padding: 25px 20px;
    }
    
    .icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .icon-wrapper svg,
    .icon-wrapper img {
        width: 28px;
        height: 28px;
    }
    
    .user-type-card h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }
    
    .user-type-card p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .bottom-footer {
        position: relative;
        padding: 20px 20px;
        order: 5;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-item {
        flex: 1 1 100%;
    }

    .footer-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        padding: 10px;
    }

    .footer-text h4 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .footer-text p {
        font-size: 13px;
    }
    
    .footer-website {
        max-width: 100%;
    }

    .blue-dithering {
        display: none;
    }
    
    .color-wave {
        display: none;
    }
}