@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Poppins:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: Conthrax-bold;
    src: url(Conthrax-Font/Conthrax\ Bold.otf);
}

@font-face {
    font-family: Conthrax-light;
    src: url(Conthrax-Font/Conthrax\ Light.otf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --body-color: #070A29;
    --prim-color: #5c27ff;
    --gradient-color: linear-gradient(264.28deg, #dec7ff 38.2%, #5c27ff 103.12%);
    --white-color: #fff;
    --light-text: #CDCED4;
    --transition: 0.3s;
    --transition2: .6s;
    --Kaushan-font: "Kaushan Script", serif;
    --Conthrax-bold: Conthrax-bold;
    --Conthrax-light: Conthrax-light;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    background: var(--body-color) url(Images/line.png) no-repeat center center/cover;
}

.bg_shape1 {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 700px;
    height: 700px;
    background-color: var(--prim-color);
    filter: blur(100px);
    opacity: 0.2;
    transform: translate(-50%, -50%);
    z-index: -1;
    display: inline;
}

.bg_shape2 {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 700px;
    height: 700px;
    transform: translate(-50%, -50%);
}

.box {
    position: relative;
    width: 90%;
    /* Adjust width to be responsive */
    max-width: 700px;
    /* Max width to avoid stretching too much */
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(92, 39, 255, 0.4);
}

.box::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, #dec7ff, #5c27ff);
    animation: rotateBorder 3s linear infinite;
}

.box::after {
    content: '';
    position: absolute;
    inset: 5px;
    background: var(--body-color);
    border-radius: 10px;
    z-index: 1;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.box form {
    width: 95%;
    position: relative;
    z-index: 2;
    padding: 50px 30px;
    /* Adjust padding for smaller screens */
    display: flex;
    flex-direction: column;
}

.box h2 {
    color: var(--white-color);
    font-family: 'Conthrax-bold';
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.info-text {
    color: var(--light-text);
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: center;
}

.inputBox {
    position: relative;
    width: 100%;
    margin-top: 20px;
}

.inputBox input {
    width: 100%;
    padding: 12px 10px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white-color);
    font-size: 1rem;
    border-bottom: 2px solid var(--light-text);
}

.inputBox label {
    position: absolute;
    left: 10px;
    top: 14px;
    color: var(--light-text);
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Conthrax-bold';
}

.inputBox input:focus~label,
.inputBox input:valid~label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--white-color);
}

button {
    position: relative;
    margin-top: 20px;
    width: 100%;
    height: 45px;
    border-radius: 8px;
    background: var(--gradient-color);
    color: var(--white-color);
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--Conthrax-bold);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.13) 0px, rgba(255, 255, 255, 0.13) 77%, rgba(255, 255, 255, 0.5) 92%, rgba(255, 255, 255, 0));
    background-size: 150% 150%;
    transition: var(--transition2);
}

button:hover::before {
    left: 0;
}

.links {
    margin-top: 15px;
}

.links a {
    color: var(--light-text);
    font-size: 0.85rem;
    text-decoration: none;
}

.links a:hover {
    color: var(--white-color);
}

@media (max-width: 1300px) {
    .bg_shape {
        height: 0px;
        width: 0px;
    }
}

@media (max-width: 768px) {
    .box {
        height: auto;
        padding: 20px;
    }

    .box form {
        padding: 30px 20px;
    }

    .box h2 {
        font-size: 1.5rem;
    }

    .info-text {
        font-size: 0.9rem;
    }

    .inputBox input {
        font-size: 0.9rem;
        padding: 10px;
    }

    button {
        font-size: 1rem;
        height: 40px;
    }

    .links a {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .box {
        width: 95%;
    }

    .box h2 {
        font-size: 1.2rem;
    }

    .info-text {
        font-size: 0.85rem;
    }

    .inputBox input {
        font-size: 0.85rem;
        padding: 8px;
    }

    button {
        font-size: 0.9rem;
        height: 35px;
    }

    .links a {
        font-size: 0.7rem;
    }

    .box{
        margin: auto 20px;
    }
}

.error{
    display: inline;
    color: white;
    font-size: 10px;
    color: #ff4c4c;
    height: 0;
    overflow: visible;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    box-shadow: 0 0 0px 1000px #070A29 inset !important;
    -webkit-text-fill-color: white !important;
    caret-color: white !important;
}