/* =========================================================
   GOOGLE FONT
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
/* =========================================================
   RESET
========================================================= */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}
/* =========================================================
   BODY
========================================================= */
body{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(rgba(0, 45, 75, 0.35), rgba(0, 0, 0, 0.55)), 
                url('../images/mountain-sunrise.jpg') no-repeat center center fixed;
    background-size: cover;
}
/* =========================================================
   MAIN CONTAINER
========================================================= */
.container{
    position: relative;
    width: 100%;
    max-width: 750px;
    min-height: 560px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.30);
    perspective: 2700px;
}
/* =========================================================
   HIDDEN FLIP CHECKBOX
========================================================= */
.container #flip{
    display: none;
}
/* =========================================================
   COVER
========================================================= */
.container .cover {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    z-index: 98;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    --cover-radius: 20px;
}
/* =========================================================
   FLIP COVER
========================================================= */
.container #flip:checked ~ .cover {
    transform: rotateY(-180deg);
}
/* =========================================================
   FRONT AND BACK
========================================================= */
.container .cover .front,
.container .cover .back{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
/* Front */
.container .cover .front{
    border-radius:0 var(--cover-radius) var(--cover-radius) 0;
}
/* Back */
.container .cover .back{
    transform: rotateY(180deg);
    border-radius: var(--cover-radius) 0 0 var(--cover-radius);
}
/* =========================================================
   COVER IMAGES
========================================================= */
.container .cover .front img,
.container .cover .back img{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}
/* =========================================================
   FRONT CROSS IMAGE
   Keeps the cross visually centered
========================================================= */
.container .cover .front img{
    object-position: center center;
}
/* =========================================================
   BACK IMAGE
========================================================= */
.container .cover .back img{
    object-position: center center;
}
/* =========================================================
   COVER DARK OVERLAY
========================================================= */
.container .cover .front::after,
.container .cover .back::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:linear-gradient(135deg,rgba(0, 0, 0, 0.68),rgba(15, 79, 121, 0.30));
}
/* =========================================================
   COVER TEXT
========================================================= */
.container .cover .text{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #ffffff;
    text-align: center;
}
/* =========================================================
   MAIN COVER TEXT
========================================================= */
.cover .text .text-1{
    display: block;
    width: 100%;
    max-width: 95%;
    font-size: clamp(20px, 3vw, 28px); /*clamp(23px, 3vw, 35px);*/
    line-height: 1.35;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.80);
    animation: coverText 1s ease-out forwards;
}
/* =========================================================
   SECONDARY COVER TEXT
========================================================= */
.cover .text .text-2{
    display: block;
    width: 100%;
    max-width: 90%;
    margin-top: 18px;
    font-size: clamp(14px, 1.5vw, 19px);
    line-height: 1.5;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.80);
    opacity: 0;
    animation: coverText 1s ease-out 0.35s forwards;
}
/* =========================================================
   COVER TEXT ANIMATION
========================================================= */
@keyframes coverText{
    from{
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   FORMS
========================================================= */
.container .forms {
    width: 100%;
    min-height: 560px;

    background: #ffffff;
}


/* =========================================================
   FORM CONTENT
========================================================= */
.container .form-content {
    width: 100%;
    min-height: 560px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 40px 45px;
}


/* =========================================================
   LOGIN AND INFORMATION FORMS
========================================================= */
.form-content .login-form,
.form-content .signup-form {
    width: calc(50% - 25px);
}


/* =========================================================
   LOGO
========================================================= */
.circular--square {
    display: block;

    width: 100px;
    height: 100px;

    margin: 0 auto 15px auto;

    object-fit: cover;

    border-radius: 50%;

    border: 4px solid #ffffff;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   FORM TITLE
========================================================= */
.forms .form-content .title {
    position: relative;

    display: inline-block;

    margin-bottom: 10px;

    font-size: 24px;

    font-weight: 600;

    color: #333333;
}


/* =========================================================
   TITLE UNDERLINE
========================================================= */
.forms .form-content .title::before {
    content: "";

    position: absolute;

    left: 0;
    bottom: -5px;

    width: 28px;
    height: 3px;

    background: #0f4f79;

    border-radius: 10px;
}


/* =========================================================
   INPUT BOXES
========================================================= */
.forms .form-content .input-boxes {
    margin-top: 20px;
}


/* =========================================================
   INPUT BOX
========================================================= */
.forms .form-content .input-box {
    position: relative;

    display: flex;

    align-items: center;

    width: 100%;
    height: 50px;

    margin: 15px 0;
}


/* =========================================================
   INPUT ICON
========================================================= */
.form-content .input-box i {
    position: absolute;

    left: 0;

    color: #0f4f79;

    font-size: 18px;
}


/* =========================================================
   INPUT
========================================================= */
.form-content .input-box input {
    width: 100%;
    height: 100%;

    padding:
        0
        0
        0
        30px;

    outline: none;

    border: none;

    border-bottom:
        2px solid rgba(0, 0, 0, 0.18);

    background: transparent;

    font-size: 15px;

    font-weight: 400;

    color: #333333;

    transition:
        border-color 0.3s ease;
}


/* =========================================================
   INPUT FOCUS
========================================================= */
.form-content .input-box input:focus {
    border-color: #0f4f79;
}


/* =========================================================
   PLACEHOLDER
========================================================= */
.form-content .input-box input::placeholder {
    color: #999999;

    font-size: 14px;
}


/* =========================================================
   FORM TEXT
========================================================= */
.forms .form-content .text {
    font-size: 13px;

    font-weight: 400;

    color: #555555;

    line-height: 1.7;
}


/* =========================================================
   LINKS
========================================================= */
.forms .form-content .text a {
    color: #0f4f79;

    text-decoration: none;

    transition: 0.3s;
}


.forms .form-content .text a:hover {
    color: #083a5b;

    text-decoration: underline;
}


/* =========================================================
   ERROR MESSAGE
========================================================= */
.error {
    display: block;

    margin-top: 5px;

    color: #dc3545 !important;

    font-size: 12px;
}


/* =========================================================
   BUTTON
========================================================= */
.forms .form-content .button {
    width: 100%;
    margin-top: 30px;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */
.forms .form-content .button input {
    width: 100%;
    height: 50px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background:
        linear-gradient(
            135deg,
            #0f4f79,
            #176b9e
        );

    color: #ffffff;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition:
        all 0.3s ease;
}


/* =========================================================
   BUTTON HOVER
========================================================= */
.forms .form-content .button input:hover {
    background:
        linear-gradient(
            135deg,
            #083a5b,
            #0f4f79
        );

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(15, 79, 121, 0.30);
}


/* =========================================================
   BUTTON ACTIVE
========================================================= */
.forms .form-content .button input:active {
    transform: translateY(0);
}


/* =========================================================
   LABELS
========================================================= */
.forms .form-content label {
    color: #0f4f79;

    cursor: pointer;

    transition: 0.3s;
}


.forms .form-content label:hover {
    color: #083a5b;

    text-decoration: underline;
}


/* =========================================================
   SIGN UP / RETURN TEXT
========================================================= */
.forms .form-content .login-text,
.forms .form-content .sign-up-text {
    text-align: center;

    margin-top: 18px;
}


/* =========================================================
   KMT INFORMATION
========================================================= */
.signup-form .text {
    margin-bottom: 12px;
}


.signup-form .text strong {
    color: #333333;
}


.signup-form .text i {
    width: 22px;

    margin-right: 5px;

    color: #0f4f79;
}


/* =========================================================
   COPYRIGHT
========================================================= */
.cp {
    margin-top: 20px;
    text-align: center;
    font-size: 11px;
    color: #777777;
}


.cp a {
    color: #0f4f79;
    font-weight: 600;
    text-decoration: none;
}
.cp a:hover {
    text-decoration: underline;
}
/* =========================================================
   TABLET
========================================================= */
@media (max-width: 900px) {
    body {
        padding: 20px;
    }
    .container {
        max-width: 800px;
    }
    .container .form-content {
        padding: 35px;
    }
    .cover .text .text-1 {
        font-size: 26px;
    }
    .cover .text .text-2 {
        font-size: 14px;
    }
}
/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 730px) {
    body {
        padding: 15px;
        background:
            linear-gradient(
                rgba(0, 45, 75, 0.40),
                rgba(0, 0, 0, 0.60)
            ),
            url('../images/mountain-sunrise.jpg')
            no-repeat center center fixed;
        background-size: cover;
    }
    /* Hide cover on mobile */
    .container .cover {
        display: none;
    }
    .container {
        width: 100%;
        min-height: auto;
        border-radius: 16px;
    }
    .container .forms {
        min-height: auto;
    }
    .container .form-content {
        min-height: auto;
        display: block;
        padding: 35px 25px;
    }


    .form-content .login-form,
    .form-content .signup-form {
        width: 100%;
    }
    /* Information hidden initially */
    .form-content .signup-form {
        display: none;
    }
    /* Show information */
    .container #flip:checked ~ .forms .signup-form {
        display: block;
    }
    /* Hide login */
    .container #flip:checked ~ .forms .login-form {
        display: none;
    }
    .circular--square {
        width: 90px;
        height: 90px;
    }
    .forms .form-content .title {
        font-size: 22px;
    }
    .forms .form-content .text {
        font-size: 12px;
    }
}

/* =========================================================
   SMALL PHONES
========================================================= */
@media (max-width: 400px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 14px;
    }
    .container .form-content {
        padding: 30px 20px;
    }
    .circular--square {
        width: 80px;
        height: 80px;
    }
    .forms .form-content .title {
        font-size: 20px;
    }
    .form-content .input-box input {
        font-size: 13px;
    }
    .forms .form-content .button input {
        height: 46px;
        font-size: 14px;
    }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */
@media (prefers-reduced-motion: reduce) {
    .container .cover,
    .cover .text .text-1,
    .cover .text .text-2,
    .forms .form-content .button input {
        animation: none;
        transition: none;
    }
}

/* =========================================================
   PASSWORD TOGGLE
========================================================= */
.form-content .input-box .password-toggle {
    position: absolute;
    left: auto;
    right: 5px;
    color: #0f4f79;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-content .input-box .password-toggle:hover {
    color: #083a5b;
    transform: scale(1.1);
}

.form-content .input-box.password-box input {
    padding-right: 40px;
}

.login-button {
    width: 80%;
    height: 45px;
    margin: 0 auto;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #DAA520, #6e187a);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.login-button:hover {
    background: linear-gradient(135deg, #6e187a, #DAA520);
}

.login-button:active {
    transform: scale(0.98);
}

.login-button:focus-visible {
    outline: 3px solid rgba(7, 94, 54, 0.3);
    outline-offset: 3px;
}

.login-button i {
    font-size: 16px;
}
