﻿@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat";
    color: #fff;
}

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #ff0000;
    --input-bg-color: #f0f0f0;
    --border-color: #ff0000;
    --link-color: #3d3d3d;
}

/*[data-theme="dark"] {
    --bg-color: #25252b;
    --text-color: #ffffff;
    --accent-color: #ff0000;
    --input-bg-color: #1e1e22;
    --border-color: #ff0000;
    --link-color: #ffffff;
}*/

#theme-icon {
    position: absolute;
    top: 0;
    right: 0;
    /* color: var(--text-color); */
    color: #f0f0f0;
    font-size: 24px;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* background: #25252b; */
    background-color: var(--bg-color);
    color: var(--text-color);
}

/*.container {
    position: relative;
    width: 62vw;
    height: 80vh;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 25px var(--accent-color);
    overflow: hidden;
}*/
.container {
    position: relative;
    width: 62vw;
    max-width: 1000px; 
    height: 80vh; 
    min-height: 500px; 
    border: 2px solid var(--border-color);
    box-shadow: 0 0 25px var(--accent-color);
    overflow: hidden;
}

    /* Base size (unchanged on zoom) */
    /*.container .curved-shape {
        position: absolute;
        right: 0;
        top: -5px;
        height: 600px;
        width: 850px;
        background: linear-gradient(45deg, #25252b, #ff0000);
        transform: rotate(10deg) skewY(40deg) scale(1);
        transform-origin: bottom right;
        transition: 1.5s ease;
        transition-delay: 1.6s;
    }*/

    /* Scale the shape relative to container size */
    /*.container.active .curved-shape {
        transform: rotate(0deg) skewY(0deg) scale(1);
    }*/

    .container .curved-shape {
        position: absolute;
        right: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 850 600" preserveAspectRatio="none"><path d="M0,0 L850,0 L850,600 L0,600 Z" fill="%2325252b" transform="rotate(10 850 600) skewY(40)"/></svg>');
        background-size: cover;
        transition: 1.5s ease;
    }

    /* Scale the shape relative to container size */
    .container.active .curved-shape {
        transform: rotate(0deg) skewY(0deg) scale(1);
    }

    /* Second shape (same approach) */
    /*.container .curved-shape2 {
        position: absolute;
        left: 250px;
        top: 100%;
        height: 700px;
        width: 850px;
        background: var(--bg-color);
        border-top: 3px solid #ff0000;
        transform: rotate(0deg) skewY(0deg) scale(1);
        transform-origin: bottom left;
        transition: transform 1.5s ease, border-top 1.5s ease;
        transition-delay: 0.5s;
    }

    .container.active .curved-shape2 {
        transform: rotate(-11deg) skewY(-41deg) scale(1);
    }*/

    .container .curved-shape2 {
        position: absolute;
        left: 250px;
        top: 100%;
        height: 700px;
        width: 850px;
        background: var(--bg-color);
        border-top: 3px solid #ff0000;
        transform: rotate(0deg) skewY(0deg) scale(1);
        transform-origin: bottom left;
        transition: transform 1.5s ease, border-top 1.5s ease;
        transition-delay: 0.5s;
    }

    .container.active .curved-shape2 {
        transform: rotate(-11deg) skewY(-41deg) scale(1);
    }

    .container .form-box {
        position: absolute;
        top: 0;
        width: 40%;
        height: 100%;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

.form-box.Login {
    left: 20px;
    /*padding: 0 40px;*/
}

    .form-box.Login .animation {
        transform: translateX(0%);
        transition: transform 0.7s, opacity 0.7s;
        opacity: 1;
        transition-delay: calc(0.1s * var(--S));
        color: var(--text-color);
    }

.container.active .form-box.Login .animation {
    transform: translateX(-120%);
    opacity: 0;
    transition-delay: calc(0.1s * var(--D));
}

.form-box.Register {
    /* display: none; */
    right: 20px;
    /*padding: 0 60px;*/
}

    .form-box.Register .animation {
        transform: translateX(120%);
        transition: transform 0.7s ease, opacity 0.7s ease, filter 0.7s ease;
        opacity: 0;
        filter: blur(10px);
        transition-delay: calc(0.1s * var(--S));
        color: var(--text-color);
    }

.container.active .form-box.Register .animation {
    transform: translateX(0%);
    opacity: 1;
    filter: blur(0px);
    transition-delay: calc(0.1s * var(--li));
    color: var(--text-color);
}

.form-box h2 {
    font-size: 32px;
    text-align: center;
}

.form-box .input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin-top: 25px;
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-color);
    font-weight: 600;
    border-bottom: 2px solid var(--text-color);
    padding-right: 23px;
    transition: 0.5s;
}

    .input-box input:focus,
    .input-box input:valid {
        border-bottom: 2px solid var(--border-color);
    }

.input-box label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-color);
    transition: 0.5s;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: -5px;
    color: var(--accent-color);
}

.input-box box-icon {
    position: absolute;
    top: 50%;
    right: 0;
    font-size: 18px;
    transform: translateY(-50%);
    color: var(--text-color);
}

.input-box input:focus ~ box-icon,
.input-box input:valid ~ box-icon {
    color: var(--accent-color);
}

.btn {
    position: relative;
    width: 100%;
    height: 45px;
    background: transparent;
    border-radius: 40px;
    cursor: pointer;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid var(--accent-color);
    overflow: hidden;
    z-index: 1;
}

    .btn::before {
        content: "";
        position: absolute;
        height: 300%;
        width: 100%;
        background: linear-gradient(#25252b, #ff0000, #25252b, #ff0000);
        top: -100%;
        left: 0;
        z-index: -1;
        transition: 0.5s;
    }

    .btn:hover:before {
        top: 0;
    }

.regi-link {
    font-size: 14px;
    text-align: center;
    margin: 20px 0 10px;
}

    .regi-link a {
        text-decoration:none;
        color: var(--link-color);
        font-weight: 600;
        cursor: pointer;
    }

        .regi-link a:hover {
            text-decoration: underline;
        }

#remeberPassword:hover {
    text-decoration:underline;
}

.info-content {
    position: absolute;
    top: 0;
    height: 75%;
    width: 40%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

    .info-content.Login {
        right: 20px;
        text-align: right;
       /* padding: 0 40px 60px 150px;*/
    }

        .info-content.Login .animation {
            transform: translateX(0);
            transition: 0.7s ease;
            transition-delay: calc(0.1s * var(--S));
            opacity: 1;
            filter: blur(0px);
        }

.container.active .info-content.Login .animation {
    transform: translateX(120%);
    opacity: 0;
    filter: blur(10px);
    transition-delay: calc(0.1s * var(--D));
}

.info-content.Register {
    /* display: none; */
    left: 20px;
    text-align: left;
   /* padding: 0 150px 60px 38px;*/
    pointer-events: none;
}

    .info-content.Register .animation {
        transform: translateX(-120%);
        transition: 0.7s ease;
        opacity: 0;
        filter: blur(10px);
        transition-delay: calc(0.1s * var(--S));
    }

.container.active .info-content.Register .animation {
    transform: translateX(0%);
    opacity: 1;
    filter: blur(0);
    transition-delay: calc(0.1s * var(--li));
}

.info-content h2 {
    text-transform: uppercase;
    font-size: 36px;
    line-height: 1.3;
}

.info-content p {
    font-size: 16px;
}

.container .curved-shape {
    position: absolute;
    right: 0;
    top: -5px;
    height: 37.5em; /* ~600px if 1em = 16px */
    width: 53.125em;
    background: linear-gradient(45deg, #25252b, #ff0000);
    /*transform: rotate(10deg) skewY(40deg);*/
    transform: rotate(10deg) skewY(40deg);
    transform-origin: bottom right;
    transition: 1.5s ease;
    transition-delay: 1.6s;
}

.container.active .curved-shape {
    transform: rotate(0deg) skewY(0deg);
    transition-delay: 0.5s;
}

.container .curved-shape2 {
    position: absolute;
    left: 250px;
    top: 100%;
    height: 43.75em; /* ~700px if 1em = 16px */
    width: 53.125em;
    background: var(--bg-color);
    ;
    border-top: 3px solid #ff0000;
    transform: rotate(0deg) skewY(0deg);
    transform-origin: bottom left;
    transition: transform 1.5s ease, border-top 1.5s ease;
    transition-delay: 0.5s;
}

.container.active .curved-shape2 {
    transform: rotate(-11deg) skewY(-41deg);
    transition-delay: 1.2s;
}

.mobile-container {
    display:none;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 350px;
    animation: fadeIn 1s ease-in-out;
}

.form-box Login .alert {
    color: darkred;
    text-align: center;
}


@media (max-width: 576px) {
    .container {
        display:none;
        position: relative;
        width: 90vw;
        height: 75vh;
        border: 2px solid var(--border-color);
        box-shadow: 0 0 25px var(--accent-color) #ff0000;
        overflow: hidden;
    }
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        background: linear-gradient(135deg, #8B0000, #1C2526);
        padding: 20px;
    }
    .mobile-container {
        display:block;
        background: #fff;
        padding: 20px;
        border-radius: .375rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        width: 100%;
        max-width: 350px;
        animation: fadeIn 1s ease-in-out;
    }

    .logo-container {
        width: 100%;
        background: linear-gradient(135deg, #8B0000, #1C2526);
        min-height: 100px;
        margin-bottom: 20px;
        border-radius: .375rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap:6px;
    }
    .logo-container-image{
        width:40%
    }


    @keyframes fadeIn {
        0% {
            opacity: 0;
            transform: translateY(-20px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    h2 {
        text-align: center;
        color: #8B0000;
        margin-bottom: 20px;
        font-size: 24px;
        animation: slideIn 0.5s ease-out;
    }

    @keyframes slideIn {
        0% {
            transform: translateX(-10px);
            opacity: 0;
        }

        100% {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .input-group {
        margin-bottom: 15px;
        position: relative;
    }

        .input-group input {
            width: 100%;
            padding: 12px;
            border: 1px solid #A93238;
            border-radius: 8px;
            font-size: 16px;
            transition: all 0.3s ease;
            color:black;
        }

            .input-group input:focus {
                outline: none;
                border-color: #C0392B;
                box-shadow: 0 0 8px rgba(192, 57, 43, 0.3);
                transform: scale(1.02);
            }

        .input-group label {
            position: absolute;
            top: 12px;
            left: 12px;
            color: #777;
            font-size: 16px;
            transition: all 0.3s ease;
            pointer-events: none;
        }

        .input-group input:focus + label,
        .input-group input:not(:placeholder-shown) + label {
            top: -10px;
            left: 10px;
            font-size: 12px;
            color: #C0392B;
            background: #fff;
            padding: 0 5px;
        }

    .btn {
        width: 100%;
        padding: 12px;
        background: #8B0000;
        border: none;
        border-radius: .375rem;
        color: #fff;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

        .btn:hover {
            background: #A93238;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .btn:active {
            transform: translateY(0);
        }

        .btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.4s ease, height 0.4s ease;
        }

        .btn:hover::after {
            width: 200px;
            height: 200px;
        }

    .link {
        text-align: center;
        margin-top: 15px;
    }

        .link a {
            color: #C0392B;
            text-decoration: none;
            font-size: 14px;
            position: relative;
            transition: color 0.3s ease;
        }

            .link a:hover {
                color: #A93238;
            }

            .link a::after {
                content: '';
                position: absolute;
                width: 0;
                height: 1px;
                background: #C0392B;
                bottom: -2px;
                left: 0;
                transition: width 0.3s ease;
            }

            .link a:hover::after {
                width: 100%;
            }

    .hidden {
        display: none;
    }

    @media (max-width: 400px) {
        .container {
            padding: 15px;
        }

        h2 {
            font-size: 20px;
        }

        .input-group input {
            font-size: 14px;
            padding: 10px;
        }

        .btn {
            font-size: 14px;
            padding: 10px;
        }

        .link a {
            font-size: 13px;
        }
    }
}
