:root {
    --landing-primary: #5c7cfa;
    --landing-dark: #212529;
    --landing-gray: #f8f9fa;
    --landing-text-muted: #6c757d;
}

body.landing-page {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}

body.landing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    backdrop-filter: brightness(0.8);
    z-index: 1;
}

.landing-container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.school-header {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    background: white;
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.school-logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.school-info h1 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: #1a3a8a;
    text-transform: uppercase;
}

.school-info p {
    margin: 0;
    font-size: 0.7rem;
    color: var(--landing-text-muted);
}

.info-card {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.info-card-header {
    background: var(--landing-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.info-card-header i {
    margin-right: 10px;
    background: white;
    color: var(--landing-primary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: normal;
    font-weight: bold;
}

.info-card-body {
    padding: 2.5rem;
    text-align: center;
}

.info-card-body h2 {
    margin: 0 0 1.5rem 0;
    font-size: 2rem;
    font-weight: 900;
    color: var(--landing-dark);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.info-card-body p {
    color: var(--landing-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-login {
    background: var(--landing-primary);
    color: white;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(92, 124, 250, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(92, 124, 250, 0.4);
}

.btn-login i {
    margin-right: 10px;
}

.landing-footer {
    position: absolute;
    bottom: 1.5rem;
    width: 100%;
    text-align: center;
    color: #495057;
    font-size: 0.75rem;
    z-index: 2;
}

.flatlogic-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: white;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1a3a8a;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
}

.flatlogic-badge img {
    margin-right: 8px;
    height: 14px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.login-modal {
    background: white;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    background: #5c7cfa;
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.modal-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.header-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-close {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-close:hover {
    background: rgba(0, 0, 0, 0.4);
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--landing-dark);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container i {
    position: absolute;
    left: 1rem;
    color: var(--landing-text-muted);
}

.input-container input, 
.input-container select {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.input-container input:focus, 
.input-container select:focus {
    border-color: var(--landing-primary);
    box-shadow: 0 0 0 3px rgba(92, 124, 250, 0.1);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    color: var(--landing-text-muted);
    cursor: pointer;
}

.modal-btn-login {
    width: 100%;
    background: var(--landing-primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
    transition: background 0.2s;
}

.modal-btn-login:hover {
    background: #4c6ef5;
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--landing-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}
