@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: 700px; /* Increased width */
    height: 450px;
    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%; /* Adjusted to fit the new box width */
    position: relative;
    z-index: 2;
    padding: 50px 50px; /* Increased horizontal padding */
    display: flex;
    flex-direction: column;
}

.box form h2 {
    color: var(--white-color);
    font-weight: 600;
    font-family: 'Conthrax-bold';
    text-align: center;
    font-size: 2.5rem;
}

.box form .inputBox {
    position: relative;
    width: 100%;
    margin-top: 35px;
}

.box form .inputBox input {
    width: 100%;
    padding: 15px 10px 10px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white-color);
    font-size: 1rem;
    transition: var(--transition);
    border-bottom: 2px solid var(--light-text);
}

.box form .inputBox label {
    position: absolute;
    left: 10px;
    top: 18px;
    color: var(--light-text);
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Conthrax-bold';
}

.box form .inputBox input:focus ~ label,
.box form .inputBox input:valid ~ label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--white-color);
}

.box form .inputBox .eye-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--light-text);
    font-size: 1rem;
}

.box form .inputBox .eye-icon:hover {
    color: var(--white-color);
}

.box form .links {
    display: flex;
    justify-content: space-between;
}

.box form .links a {
    margin: 10px 0;
    font-size: 0.75em;
    color: var(--light-text);
    text-decoration: none;
}

.box form .links a:hover {
    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;
}

@media (max-width: 1300px) {
    .bg_shape {
        height: 0px;
        width: 0px;
    }
}

@media (max-width: 700px){
    .box{
        margin: auto 20px;
    }
}

.error{
    font-size: 10px;
    color: #ff4c4c;
}

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;
}