/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #2b1b12;
}


/* =========================================
   NAVIGATION
========================================= */

.navbar {
    position: relative;
    z-index: 10;

    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 60px;

    background: burlywood;
}

.logo a {
    font-family: "Playfair Display", serif;

    font-size: 30px;
    font-weight: 700;

    color: #3d2b1f;

    text-decoration: none;
    letter-spacing: 1px;

    position: relative;
}

.logo a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -6px;

    width: 45%;
    height: 2px;

    background: #b38b59;
}


/* =========================================
   MENU
========================================= */

.menu {
    display: flex;

    gap: 15px;

    list-style: none;
}

.menu li a {
    display: inline-block;

    background-color: #6f4e37;

    color: white;

    padding: 10px 18px;

    border-radius: 8px;

    text-decoration: none;

    transition: 0.3s ease;
}

.menu li a:hover {
    background-color: #5a3e2b;

    transform: translateY(-2px);
}


/* =========================================
   HERO / BACKGROUND
========================================= */

.hero {
    position: relative;

    width: 100%;
    min-height: calc(100vh - 80px);

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 60px 20px;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.55)
        ),
        url("img/MALAYA.jpg");

    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;

    background-attachment: fixed;
}


/* =========================================
   BACKGROUND OVERLAY
========================================= */

.hero::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            rgba(43, 27, 18, 0.25),
            rgba(43, 27, 18, 0.25)
        );

    pointer-events: none;
}


/* =========================================
   LOGIN CONTAINER
========================================= */

.login-container {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 1050px;

    min-height: 570px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    background: #f5ecdc;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.55);

    animation: containerAppear 0.8s ease forwards;
}


/* =========================================
   CONTAINER ANIMATION
========================================= */

@keyframes containerAppear {

    0% {
        opacity: 0;

        transform:
            translateY(40px)
            scale(0.95);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================
   LEFT SIDE
========================================= */

.login-left {
    padding: 70px 55px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    color: #f7ead5;

    background:
        linear-gradient(
            rgba(58, 36, 24, 0.93),
            rgba(58, 36, 24, 0.93)
        ),
        url("img/MALAYA.jpg");

    background-size: cover;

    background-position: center;
}


/* =========================================
   DECORATION
========================================= */

.login-decoration {
    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    border: 1px solid #c49a5a;

    border-radius: 50%;

    color: #d5ae6a;

    font-size: 24px;

    box-shadow:
        0 0 15px rgba(196, 154, 90, 0.15);
}


/* =========================================
   LEFT TITLE
========================================= */

.login-left h1 {
    margin: 0 0 20px;

    font-family: "Cinzel", serif;

    font-size: 42px;

    line-height: 1.2;

    color: #f3d49a;

    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.4);
}


/* =========================================
   LEFT DESCRIPTION
========================================= */

.login-left p {
    max-width: 400px;

    color: #ddcbb2;

    font-size: 16px;

    line-height: 1.8;
}


/* =========================================
   HISTORY LINE
========================================= */

.history-line {
    width: 80px;
    height: 2px;

    margin: 30px 0;

    background: #c49a5a;
}


/* =========================================
   LEFT SPAN
========================================= */

.login-left span {
    font-family: "Cinzel", serif;

    font-size: 14px;

    font-style: italic;

    color: #cdb28d;
}


/* =========================================
   LOGIN CARD
========================================= */

.login-card {
    padding: 55px 60px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    background: #fffaf1;
}


/* =========================================
   LOGIN ICON
========================================= */

.login-icon {
    width: 60px;
    height: 60px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #4a2e20;

    font-size: 25px;

    box-shadow:
        0 8px 20px rgba(74, 46, 32, 0.2);
}


/* =========================================
   LOGIN TITLE
========================================= */

.login-card h2 {
    margin: 0;

    text-align: center;

    font-family: "Cinzel", serif;

    font-size: 30px;

    color: #3b2618;
}

.btn-back {
    background-color: #ffffff;
    border: 1px solid #6F4E37;
    color: #3D2B1F;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: gold;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-back:active {
    transform: scale(0.96);
}


/* =========================================
   SUBTITLE
========================================= */

.login-subtitle {
    margin: 8px 0 30px;

    text-align: center;

    color: #8a725c;

    font-size: 14px;
}


/* =========================================
   INPUT GROUP
========================================= */

.input-group {
    margin-bottom: 20px;
}


/* =========================================
   LABEL
========================================= */

.input-group label {
    display: block;

    margin-bottom: 8px;

    color: #4b3324;

    font-size: 14px;

    font-weight: 700;
}


/* =========================================
   INPUT BOX
========================================= */

.input-box {
    position: relative;

    height: 50px;

    display: flex;

    align-items: center;

    padding: 0 15px;

    border: 1px solid #d8c7ad;

    border-radius: 8px;

    background: #fffdf8;

    transition: 0.3s ease;
}


/* =========================================
   PASSWORD BOX
========================================= */

.password-box {
    position: relative;
}


/* =========================================
   INPUT ICON / SPAN
========================================= */

.input-box span {
    width: 10px;
    height: 10px;

    margin-right: 10px;

    display: block;

    border-radius: 50%;

    background: #9b7745;
}


/* =========================================
   INPUT
========================================= */

.input-box input {
    width: 100%;

    min-width: 0;

    border: none;

    outline: none;

    background: transparent;

    color: #3b2618;

    font-size: 14px;
}

.input-box input::placeholder {
    color: #b5a28c;
}


/* =========================================
   PASSWORD INPUT
========================================= */

.password-box input {
    padding-right: 35px;
}


/* =========================================
   PASSWORD EYE BUTTON
========================================= */

.toggle-password {
    position: absolute;

    right: 12px;
    top: 50%;

    transform: translateY(-50%);

    width: 24px !important;
    height: 24px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none !important;
    outline: none !important;

    background: transparent !important;

    color: #806d59;

    font-size: 17px;

    line-height: 1;

    cursor: pointer;

    box-shadow: none !important;

    appearance: none;
    -webkit-appearance: none;

    border-radius: 0 !important;
}

.toggle-password:hover {
    color: #4a2e20;

    background: transparent !important;

    box-shadow: none !important;
}

.toggle-password:focus,
.toggle-password:focus-visible,
.toggle-password:active {
    border: none !important;
    outline: none !important;

    background: transparent !important;

    box-shadow: none !important;
}


/* =========================================
   INPUT FOCUS
========================================= */

.input-box:focus-within {
    border-color: #a77c42;

    box-shadow:
        0 0 0 3px rgba(167, 124, 66, 0.12);
}


/* =========================================
   LOGIN OPTIONS
========================================= */

.login-options {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin: 5px 0 25px;

    font-size: 12px;
}


/* =========================================
   REMEMBER
========================================= */

.remember {
    display: flex;

    align-items: center;

    gap: 6px;

    color: #75604c;

    cursor: pointer;
}

.remember input {
    accent-color: #4a2e20;
}


/* =========================================
   OPTIONS LINK
========================================= */

.login-options a {
    color: #946b36;

    text-decoration: none;

    font-weight: 600;
}

.login-options a:hover {
    text-decoration: underline;
}


/* =========================================
   LOGIN / REGISTER BUTTON
========================================= */

.login-submit {
    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #4a2e20,
            #6b432c
        );

    color: white;

    font-family: "Cinzel", serif;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1.5px;

    cursor: pointer;

    transition: 0.3s ease;

    box-shadow:
        0 8px 18px rgba(74, 46, 32, 0.2);
}


/* =========================================
   BUTTON HOVER
========================================= */

.login-submit:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #6b432c,
            #8a5b35
        );

    box-shadow:
        0 12px 25px rgba(74, 46, 32, 0.3);
}


/* =========================================
   BUTTON ACTIVE
========================================= */

.login-submit:active {
    transform: scale(0.98);
}


/* =========================================
   DIVIDER
========================================= */

.divider {
    display: flex;

    align-items: center;

    gap: 15px;

    margin: 25px 0 18px;

    color: #ad9a84;

    font-size: 12px;
}

.divider::before,
.divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #dfd2bf;
}


/* =========================================
   REGISTER TEXT
========================================= */

.register-text {
    margin: 0;

    text-align: center;

    color: #806d59;

    font-size: 13px;
}

.register-text a {
    color: #8e6432;

    font-weight: bold;

    text-decoration: none;

    transition: 0.2s ease;
}

.register-text a:hover {
    color: #4a2e20;

    text-decoration: underline;
}


/* =========================================
   POP-UP ANIMATION
========================================= */

.popup {
    opacity: 0;

    transform:
        translateY(40px)
        scale(0.9);
}

.popup.show {
    animation:
        popupAnimation 0.8s ease forwards;
}

@keyframes popupAnimation {

    0% {
        opacity: 0;

        transform:
            translateY(40px)
            scale(0.9);
    }

    60% {
        opacity: 1;

        transform:
            translateY(-8px)
            scale(1.03);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================
   OLD CARD COMPONENT
   KEPT FOR OTHER PAGES
========================================= */

.content {
    width: 90%;
    max-width: 1100px;

    margin: 50px auto;
}

.content h2 {
    margin-bottom: 8px;

    color: #222;
}

.subtitle {
    color: #666;

    margin-bottom: 30px;
}

.card {
    background: white;

    border: 1px solid #ddd;

    border-radius: 6px;

    padding: 25px;

    display: flex;

    gap: 25px;

    margin-bottom: 25px;
}

.image-placeholder {
    width: 250px;
    height: 180px;

    overflow: hidden;

    border-radius: 10px;

    background: #eee;

    border: 1px solid #ddd;
}

.image-placeholder img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    margin-bottom: 10px;
}

.card-content p {
    color: #666;

    line-height: 1.6;

    margin-bottom: 18px;
}

.card-content button {
    padding: 8px 18px;

    border-radius: 5px;

    border: 1px solid #888;

    background: #f2f2f2;

    cursor: pointer;
}

.card-content button:hover {
    background: #ddd;
}

.card button {
    background-color: navy;

    color: white;

    border: none;

    padding: 10px 20px;

    border-radius: 8px;

    cursor: pointer;

    transition: 0.3s ease;
}

.card button:hover {
    background-color: blue;

    transform: translateY(-2px);
}


/* =========================================
   COLLABORATION
========================================= */

.collaboration {
    padding: 80px 10%;

    background: #f8f5ef;

    text-align: center;
}

.collaboration h2 {
    font-size: 36px;

    margin-bottom: 15px;

    color: #3d2b1f;
}

.collaboration .subtitle {
    max-width: 800px;

    margin: 0 auto 50px;

    color: #666;
}

.collab-container {
    display: flex;

    gap: 30px;

    justify-content: center;

    flex-wrap: wrap;
}

.collab-card {
    background: white;

    width: 450px;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.1);
}

.collab-card img {
    width: 100%;

    height: 300px;

    object-fit: cover;

    display: block;

    border-bottom: 3px solid #c9a227;
}

.collab-card:nth-child(2) img {
    object-fit: contain;

    padding: 20px;
}

.collab-content {
    padding: 25px;
}

.collab-content h3 {
    margin-bottom: 15px;

    color: #6f4e37;
}

.collab-content p {
    line-height: 1.7;

    color: #555;
}


/* =========================================
   RESPONSIVE - TABLET
========================================= */

@media (max-width: 800px) {

    .navbar {
        padding: 18px 25px;
    }

    .logo a {
        font-size: 24px;
    }

    .menu {
        gap: 8px;
    }

    .menu li a {
        padding: 8px 12px;

        font-size: 12px;
    }

    .hero {
        min-height: calc(100vh - 75px);

        padding: 40px 20px;

        background-attachment: scroll;
    }

    .login-container {
        grid-template-columns: 1fr;

        max-width: 600px;

        min-height: auto;
    }

    .login-left {
        display: none;
    }

    .login-card {
        padding: 45px 40px;
    }
}


/* =========================================
   RESPONSIVE - MOBILE
========================================= */

@media (max-width: 500px) {

    .navbar {
        padding: 15px;

        flex-direction: column;

        gap: 15px;
    }

    .logo a {
        font-size: 23px;
    }

    .menu {
        width: 100%;

        justify-content: center;

        flex-wrap: wrap;
    }

    .menu li a {
        padding: 8px 12px;

        font-size: 11px;
    }

    .hero {
        min-height: calc(100vh - 105px);

        padding: 25px 15px;
    }

    .login-container {
        width: 100%;

        border-radius: 15px;
    }

    .login-card {
        padding: 35px 25px;
    }

    .login-card h2 {
        font-size: 26px;
    }

    .login-subtitle {
        margin-bottom: 25px;
    }

    .input-box {
        height: 48px;
    }

    .login-submit {
        padding: 13px;
    }

    /* Eye icon mobile */
    .toggle-password {
        right: 10px;

        width: 24px !important;
        height: 24px !important;

        font-size: 16px;
    }
}