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

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #0d0d0d;
  --primary-color-light: #1f2125;
  --primary-color-extra-light: #35373b;
  --secondary-color: #696fdd;
  --secondary-color-dark: #a3a8f0;
  --text-light: #ccc;
  --white: #fff;
  --background-gradient: linear-gradient(135deg, rgb(186, 190, 253) 0%, rgb(66, 71, 158) 100%);
  --background1: linear-gradient(113.36deg, #000002 -12.22%, #9685de 179.61%);
  --background2: linear-gradient(180deg, #d6d9fa, rgb(149, 154, 243));
  --max-width: 1300px;
}


body {
    font-family: "Poppins", sans-serif;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    background-image: none;
    overflow-y: auto;
    width: 100%;
}


.container {
    background: var(--primary-color-light);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 450px;
    animation: fadeIn 0.8s ease-in-out;
    color: var(--white);
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.container img {
    width: 40%;
    margin-bottom: 1rem;
}

p {
    text-align: center;
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 15px;
}


/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    margin-top: 16px;
    font-weight: 500;
    color: var(--white);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
    padding: 13px 12px;
    margin-top: 7px;
    background-color: var(--primary-color-extra-light);
    color: var(--white);
    border: 1px solid var(--text-light);
    border-radius: 8px;
    font-size: 15px;
    transition: border 0.3s ease;
}


input::placeholder {
    color: #aaa;
}

input:focus {
    border-color: var(--secondary-color-dark);
    outline: none;
}

.input-container {
    position: relative;
    width: 100%;
}

.input-container input {
    padding-right: 40px;
    width: 100%;
}

input[type="password"] {
    margin-top: 7px;
    margin-bottom: 10px;
    transition: border 0.2s ease;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: var(--secondary-color-dark);
}




/* Step Styles */
#codeForm,
#resetForm {
    display: none;
}

.code-inputs {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-top: 5px;
}

.code-inputs input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    border: 1px solid var(--secondary-color-dark);
    border-radius: 10px;
}

/* Toastify */
.toastify-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}



button {
    border-radius: 8px;
    padding: 13px;
    background: var(--background-gradient);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    margin-top: 20px;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.btn {
    margin-bottom: 30px;
}

button:hover {
    background: var(--secondary-color);
    opacity: 0.9;
    transform: scale(1.01);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary-color-dark);
    font-weight: 500;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}


/* LOADING SPINNER  */
.loading {
    pointer-events: none;
    opacity: 0.6;
  }

  .loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }



/* BLUR EFFECT */
.bg__blur {
    position: absolute;
    box-shadow: 0 0 1000px 50px var(--secondary-color);
    z-index: -1;
    top: 0;
    left: 0;
    position: fixed;
}

.footer__blur {
    position: fixed;
    position: absolute;
    z-index: -1;
    box-shadow: 0 0 1000px 50px var(--secondary-color);
    bottom: 0;
    right: 0;
}






@media (max-width: 800px) {
    body {
        padding: 30px 10px;
    }

    .container {
        padding: 20px 15px;
    }

    .container img {
        width: 40%;
    }

    button {
        font-size: 15px;
    }

    .back-link {
        font-size: 15px;
    }
}