/* =========================================
   YLA CAFE AND KEANNA TAPSIHAN
   LOGIN PAGE
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================
   MAIN PAGE
   ========================================= */

.login-page {

    min-height: 100vh;

    width: 100%;

    position: relative;

    background-image:
        url("../images/Background.jpg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 30px;

}


/* =========================================
   DARK OVERLAY
   ========================================= */

.login-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.72),
            rgba(0, 0, 0, 0.38)
        );

}


/* =========================================
   MAIN CONTAINER
   ========================================= */

.login-container {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 1100px;

    min-height: 650px;

    display: grid;

    grid-template-columns: 1fr 430px;

    gap: 60px;

    align-items: center;

}


/* =========================================
   BRAND
   ========================================= */

.brand-section {

    color: white;

    text-align: center;

    padding: 30px;

    text-shadow:
        0 3px 10px rgba(0, 0, 0, 0.8);

}


.logo-circle {

    width: 90px;

    height: 90px;

    margin: 0 auto 20px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #f4c46b,
            #8b5a2b
        );

    border: 3px solid rgba(255,255,255,0.8);

    color: #ffffff;

    font-size: 27px;

    font-weight: 900;

    letter-spacing: 2px;

    box-shadow:
        0 10px 35px rgba(0,0,0,0.45);

}


.brand-section h1 {

    font-size: clamp(48px, 7vw, 82px);

    line-height: 0.95;

    letter-spacing: 4px;

    font-weight: 900;

    color: #ffe3a1;

}


.and-text {

    font-size: 18px;

    font-weight: bold;

    letter-spacing: 8px;

    margin: 13px 0;

    color: white;

}


.brand-section h2 {

    font-size: clamp(25px, 4vw, 43px);

    letter-spacing: 3px;

    color: #ffe1a0;

}


.tagline {

    margin-top: 22px;

    font-size: 17px;

    letter-spacing: 3px;

    color: #ffffff;

}


/* =========================================
   LOGIN CARD
   ========================================= */

.login-card {

    width: 100%;

    background:
        rgba(255, 255, 255, 0.96);

    border-radius: 25px;

    padding: 42px;

    box-shadow:
        0 25px 70px rgba(0,0,0,0.5);

    border:
        1px solid rgba(255,255,255,0.7);

    backdrop-filter:
        blur(10px);

}


.welcome {

    text-align: center;

    margin-bottom: 30px;

}


.welcome h2 {

    font-size: 31px;

    color: #3a2415;

    margin-bottom: 7px;

}


.welcome p {

    color: #777;

    font-size: 14px;

}


/* =========================================
   ERROR
   ========================================= */

.error-message {

    background: #ffe4e4;

    border-left: 5px solid #d93025;

    color: #a40000;

    padding: 13px 15px;

    border-radius: 8px;

    margin-bottom: 20px;

    font-size: 14px;

}


/* =========================================
   INPUT
   ========================================= */

.input-group {

    margin-bottom: 20px;

}


.input-group label {

    display: block;

    margin-bottom: 8px;

    color: #3a2415;

    font-weight: 700;

    font-size: 14px;

}


.input-group input {

    width: 100%;

    height: 52px;

    padding: 0 15px;

    border:
        1px solid #d7d0c8;

    border-radius: 12px;

    outline: none;

    font-size: 15px;

    background: #fffdf9;

    transition: 0.25s ease;

}


.input-group input:focus {

    border-color: #b77b35;

    box-shadow:
        0 0 0 4px rgba(183,123,53,0.12);

}


/* =========================================
   PASSWORD
   ========================================= */

.password-wrapper {

    position: relative;

}


.password-wrapper input {

    padding-right: 75px;

}


.show-password {

    position: absolute;

    right: 10px;

    top: 50%;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    color: #8a5728;

    font-weight: bold;

    cursor: pointer;

}


/* =========================================
   LOGIN OPTIONS
   ========================================= */

.login-options {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin: 5px 0 25px;

    font-size: 13px;

}


.remember {

    display: flex;

    align-items: center;

    gap: 7px;

    color: #555;

}


.remember input {

    width: 15px;

    height: 15px;

}


.login-options a {

    text-decoration: none;

    color: #9b622b;

    font-weight: 600;

}


.login-options a:hover {

    text-decoration: underline;

}


/* =========================================
   LOGIN BUTTON
   ========================================= */

.login-button {

    width: 100%;

    height: 55px;

    border: none;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #8b572a,
            #c68a42
        );

    color: white;

    font-size: 16px;

    font-weight: 800;

    letter-spacing: 2px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

    box-shadow:
        0 10px 25px rgba(139,87,42,0.35);

}


.login-button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 15px 30px rgba(139,87,42,0.45);

}


.login-button:active {

    transform: translateY(0);

}


/* =========================================
   REGISTER
   ========================================= */

.register-area {

    text-align: center;

    margin-top: 25px;

    padding-top: 22px;

    border-top:
        1px solid #e5e0da;

}


.register-area p {

    display: inline;

    color: #777;

    font-size: 14px;

}


.register-area a {

    margin-left: 5px;

    color: #8b572a;

    font-weight: 700;

    text-decoration: none;

}


.register-area a:hover {

    text-decoration: underline;

}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {

    .login-container {

        grid-template-columns: 1fr;

        max-width: 500px;

        gap: 20px;

    }


    .brand-section {

        padding: 10px;

    }


    .logo-circle {

        width: 65px;

        height: 65px;

        font-size: 20px;

        margin-bottom: 10px;

    }


    .brand-section h1 {

        font-size: 45px;

    }


    .brand-section h2 {

        font-size: 25px;

    }


    .tagline {

        font-size: 13px;

        margin-top: 10px;

    }


    .login-card {

        padding: 30px 25px;

    }

}


@media (max-width: 500px) {

    .login-page {

        padding: 15px;

    }


    .brand-section h1 {

        font-size: 38px;

    }


    .brand-section h2 {

        font-size: 21px;

        letter-spacing: 1px;

    }


    .login-card {

        padding: 25px 20px;

        border-radius: 18px;

    }


    .welcome h2 {

        font-size: 26px;

    }


    .login-options {

        flex-direction: row;

        justify-content: space-between;

        align-items: center;

        gap: 12px;

    }

}

/* Registration links */
.register-area { text-align:center; }
.register-links { display:flex; flex-direction:column; align-items:center; gap:8px; margin-top:8px; }
.register-links a { display:block; }
