:root {
    --black: #000000;
    --white: #ffffff;
    --blue-grade-1: #2c234f;
    --grey: #808080;
    --gold: #ffd700;
    --background: #eadb84;
    --light-red: rgba(223, 142, 142, 0.555);
  }  

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px;
    margin: 0px;
    align-items: center;
    height: 100vh;
    font-family: 'Roboto', sans-serif;
    color: var(--blue-grade-1);
}

.err-container{
    background: rgb(252, 207, 207);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 400px;
    max-width: 100%;
    margin: 0 0 32px 0;
    position: relative;
}

.err-container::after {
    content: ''; /* Required to make the pseudo-element appear */
    display: block; /* Ensures the pseudo-element is a block element */
    width: 98%;
    height: 92%;
    border: 3px solid red;
    border-radius: 7px;
    position: absolute; /* Allows precise positioning */
    top: 4%; /* Adjust to center the border within the container */
    left: 1%; /* Adjust to center the border within the container */
    box-sizing: border-box; /* Ensures the width and height include the border */
}

.err-container p{
    color: red;
    font-weight: 500;
    font-size: 19px;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 18px;
}

.background1 {
    background-image: url(https://res.cloudinary.com/dqtcytdrk/image/upload/v1716657667/azeemStreak/streak-background1_pbepug.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    backdrop-filter: blur(25px);
  }
  .background1::after{
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    background-color:rgba(81, 37, 143, 0.183);
    height: 100%;
    width: 100%;
    z-index: -1;
  }

.background2 {
    background-color: #eadb84;
    background-image:  repeating-radial-gradient( circle at 0 0, transparent 0, #eadb84 10px ), repeating-linear-gradient( #ff8d3f55, #ff8d3f );
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.container {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 400px;
    max-width: 100%;
}

.header {
    color: var(--blue-grade-1);
    padding: 20px;
    text-align: center;
    font-size: 24px;
    letter-spacing: 3px;
    font-weight: 700;
    cursor: pointer;
}

.form-container {
    padding: 30px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.hidden {
    opacity: 0;
    position: absolute;
    top: 110px;
    pointer-events: none;
}

.display-none {
    display: none;
}


.form-container h2 {
    margin-bottom: 20px;
    color: #2c234f;
}

.form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c234f;
}

.form-container input {
    width: 92.5%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #f9f9f9;
}

.form-container button {
    width: 100%;
    padding: 10px;
    background: #2c234f;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    margin: 5px 0 0 0;
}

.form-container button:hover {
    background: var(--grey);
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

.toggle-container {
    text-align: center;
    padding: 15px;
    background: #f1f1f1;
    margin: 23px 0 0 0;
    /* border-top: 1px solid #ddd; */
}

.toggle-container a {
    color: #2c234f;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.toggle-container a:hover {
    text-decoration: underline;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--blue-grade-1);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--blue-grade-1);
    text-decoration: none;
    font-size: 16px;
    margin: 12px 0 20px 0;
    transition: background 0.3s;
}

.google-btn:hover {
    background: var(--grey);
}

.google-btn img {
    margin-right: 10px;
    width: 20px;
}



@media screen and (max-width: 460px) {
    body{
        justify-content: flex-start;
        background-color: var(--background);
        padding: 50px 8px 0 8px;
    }

    .container {
        margin: 50px 0 0 0;
    }
}