/* --- 1. SETTINGS & MODERN VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
    --primary-blue: #4A76C1;
    --dark-text: #1a1a1a;
    --light-gray: #888888;
    --bg-white: linear-gradient(#96bcfd, white);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-image: var(--bg-white);
    color: var(--dark-text);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    margin: 0;
}

/* --- 2. MINIMALIST NAVIGATION --- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0%;
    background: none;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.nav-container {
    width: 90%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* --- 3. HORIZONTAL SLIDER --- */
.main-slider {
    display: flex;
    width: 300vw; 
    height: 100vh;
    overflow: hidden; /* Prevent manual scrolling */
}

.page-section {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

}

/* --- 4. THE TWO-COLUMN HERO LAYOUT --- */
.section-container {
    display: flex;
    width: 90%;
    max-width: 1000px;
    justify-content: center;
    align-items: center;
    gap: 200px;
    margin: 0 auto;
}

.content-left {
    flex: 2.0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 0;
}

.role-labels {
    font-size: 14px;
    color: var(--light-gray);
    margin-bottom: 30px;
    line-height: 1.6;
    margin-top: 60px;
}

.accent {
    color: var(--primary-blue);
    font-weight: 700;
}

h1 {
    font-size: clamp(35px, 4vw, 65px);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero-description p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px;
}

/* Graphic Area */
.content-right {
    flex: 1.0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-graphic-box {
    width: 550px;
    height: 550px;
    background: #1a1a1a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    font-weight: 900;
}

/* --- 5. THE BUTTON --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    padding: 10px 10px 10px 25px;
    border: 1px solid #eee;
    border-radius: 50px;
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 14px;
    transition: 0.3s;
    width: 300px;
}

.arrow {
    background-color: var(--primary-blue);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

/* --- 6. MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7); /* Overlay gelap sedikit telus */
    backdrop-filter: blur(8px); /* Kesan kabur di belakang popup */
    display: none; /* Sembunyi secara asal */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    display: flex; /* Papar apabila aktif */
}

.login-modal-content {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 450px; /* Saiz kotak log masuk yang ideal */
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: slideUp 0.4s cubic-bezier(0.24, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.login-logo {
    height: 80px;
    margin-bottom: 15px;
}

.login-form-area h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

.login-form-area p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 30px;
}

.login-form-area form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form-area input {
    width: 100%;
    padding: 14px 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.login-form-area input:focus {
    outline: none;
    border-color: #4A76C1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(74, 118, 193, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #4A76C1; /* Warna biru tema UPNM */
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #3a5fa3;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(74, 118, 193, 0.3);
}

.close-modal {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #ef4444; /* Warna merah */
    border-radius: 50%;
    display: flex;
    place-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
    z-index: 2100;
}

.close-modal:hover {
    background: #ef4444;
    color: #ffffff;
    transform: scale(1.1);
    
}

.error-box {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 15px;
    border: 1px solid #fee2e2;
}

.login-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 700px; /* Hadkan saiz maksimum gambar */
    display: flex;
    justify-content: center;
}

.responsive-hero-img {
    width: 120%;
    height: auto;
    object-fit: contain;
    /* Tambah efek bayang atau border jika perlu */
    filter: drop-shadow(0px 15px 40px rgba(0,0,0,0.1));
}