  @import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Indie+Flower&family=Kode+Mono:wght@400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Permanent+Marker&family=Single+Day&family=Yuji+Boku&display=swap');

:root{
    --orange:orange;
    --text-color-1:black;
    --text-color-2:#666;
    --box-shadow:0 .5rem 1.5rem rgba(0,0,0,.1);

    --bg-color-1:#f0f4f8;
    --bg-color-2:#fff;
    --blue-text: blue;
    --navlinks-bg-color:#d6d6ff;

    --navpop-bg:black;
    --border-color: #ddd;
}

*{
    font-family: "Montserrat", sans-serif;
    margin:0; padding:0;
    box-sizing: border-box;
    text-decoration: none;
    text-transform: capitalize;
    transition:all .2s linear;
}




body{
    background:var(--bg-color-1); 

}

body.active{
    --text-color-1:#fff;
    --text-color-2:#eee;
    --box-shadow:0 .5rem 1.5rem rgba(0,0,0,.4);
   --bg-color-1:#263238;
   --bg-color-2:#37474f;

   --blue-text: skyblue;

   --navlinks-bg-color:#39392c;
   --navpop-bg:white;
   --border-color: #546e7a;
}



.heading{
    text-align: center;
    padding-bottom: 2rem;
    color:var(--text-color-1);
    font-size: 4rem;
}

.heading span{
    position: relative;
    z-index: 0;
}

.heading span::before{
    content: '';
    position: absolute;
    bottom: 1rem; left: 0;
    z-index: -1;
    background: var(--orange);
    height: 100%;
    width: 100%;
    clip-path: polygon(0 90%, 100% 83%, 100% 100%, 0% 100%);
}
.header{
    position: fixed;
    top:0; left:0; right:0;
    background: #0082e6;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 45px;
}

.header .logo{
    font-weight: bolder;
    font-size: 1.9rem;
    margin-left: 5px;
    color: white;
}


/*the icons*/
.header .icons div{
    height:2.0rem;
    width:2.0rem;
    line-height:2.0rem;
    font-size: 1.3rem;
    background:var(--bg-color-2);
    color:var(--text-color-1);
    cursor: pointer;
    text-align: center;
    border-radius: .5rem;
    margin-right: 3px;
}

.icons{
  margin-right: .4rem;
}

.header .icons div:hover{
    color:#fff;
    background:var(--orange);
}
 

/* Contents styles */

.contents {
            padding-top: 20px;
            margin-bottom: 60px;
            width: 100%;
            
        }

.page-heading {
            display: flex;
            padding-top: 40px;
            margin-left: 30px;
            font-size: 22px;
            font-weight: bold;
            color: var(--text-color-1);
            margin-bottom: 20px;
        }

        .page-heading i {
            margin-right: 10px;
            font-size: 34px;
            color: brown;
        }


.form-container {
    display: flex;
            flex-direction: column;
            align-items: center;
            max-width: 800px;
            width: 96%;
            padding-top: 20px;
            margin: 0 auto;
        }

        label{
            color: var(--text-color-1);
            font-weight: 600;
        }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 8px 12px; /* Reduced padding to make inputs smaller */
    margin: 8px 0;
    border: 1px solid grey; /* Added 1px border */
    border-radius: 50px;
    background: var(--navlinks-bg-color);
    transition: all 0.3s ease;
    color: var(--text-color-1);
    height: 36px; /* Explicitly set height to make inputs smaller */
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    box-shadow: 0 0 0 1px var(--orange);
    border-color: var(--orange); /* Change border color on focus */
}


.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6e8efb;
}

.form-btn {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 50px;
            background: var(--orange);
            color: black;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 20px; /* Added margin to lower the button */
        }

        .login-text {
            text-align: center;
            margin-top: 15px;
            font-weight: bold;
            font-size: 0.8em;
            color: var(--text-color-1);
        }

.form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

 .login-text {
            text-align: center;
            margin-top: 15px;
            font-weight: bold;
            font-size: 0.8em;
            color: var(--blue-text);
        }

.forgot-text {
            text-align: center;
            margin-top: 15px;
            font-weight: bold;
            font-size: 0.8em;
            color: red;
        }


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-container {
    animation: fadeIn 0.5s ease-out;
}

@media (max-width: 480px) {
    .form-container {
        padding: 10px;
    }
    
    .page-heading {
        font-size: 24px;
    }
}

.password-container {
            position: relative;
        }
        .password-toggle {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
        }

/*error styling*/


.error-container {
        background-color: #ffebee; /* Slightly redder background */
        border: 1px solid #ef9a9a;
        border-radius: 4px;
        padding: 10px;
        margin-bottom: 15px;
    }

    .error-msg {
        color: #c62828; /* Darker red text for better contrast */
        display: block;
        font-size: 14px;
        font-weight: bold; /* Make the font bold */
        text-align: center; /* Center the text horizontally */
        margin-bottom: 5px; /* Add some space between multiple error messages */
    }

/*number input with the dropdown*/

.phone-input-container {
            display: flex;
            width: 100%;
        }

        select#country_code {
            width: 30%;
            padding: 8px 12px;
            margin: 8px 8px 8px 0;
            border: 1px solid grey;
            border-radius: 50px;
            background: var(--navlinks-bg-color);
            color: var(--text-color-1);
            height: 36px;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23131313%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
            background-repeat: no-repeat;
            background-position: right 12px top 50%;
            background-size: 12px auto;
            cursor: pointer;
        }

        input#phone {
            width: 70%;
        }

        select#country_code:focus,
        input#phone:focus {
            outline: none;
            box-shadow: 0 0 0 1px var(--orange);
            border-color: var(--orange);
        }

          .login-text {
    text-align: center;
    font-size: 13px;
    margin-top: 15px;
    color: var(--text-color-1);
}

.login-text a {
    font-weight: 600;
    color: var(--orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-text a:hover {
    color: #ff7b00;
}

.forgot-password-link {
    font-weight: 600;
}