/* @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap'); */

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/dm_sans.ttf') format('truetype');
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "DM Sans", sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding-top: 70px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url(../img/registerBG.jpeg);
  background-size: cover;
  opacity: 0.1; /* 👈 change this for transparency */
  z-index: -1;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
}

.header .logo {
    height: 30px;
    width: auto;
}

/* Responsive header adjustments */
@media (max-width: 768px) {
    .header {
        padding: 0 20px;
    }

    .header .logo {
        height: 40px;
    }
}

.main-section {
    width: 100%;
    max-width: 500px;
    margin: auto;
    padding: 40px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    /* positioning in the middle of the screen */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.main-section img {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
    margin-bottom: 5%;
}

.login-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 5%;
}

.login-header h2 {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 1.64rem;
    color: #333;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 12px 44px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 0.92rem;
    margin-bottom: 6px;
}

.input-group {
    margin-bottom: 18px;
    position: relative;
}

.input-group i {
    left: 16px;
    top: 50%;
    position: absolute;
    transform: translateY(-50%);
    color: #333;
    font-size: 1rem;
    pointer-events: none;
}

.input-group .toggle-password {
    left: auto;
    right: 16px;
    cursor: pointer;
    z-index: 2;
    pointer-events: all;
}

.toggle-section {
    display: flex;
    justify-content: center;
    margin: 10px auto;
    margin-bottom: 40px;
    border: 1px solid #33333380;
    border-radius: 10px;
    padding: 5px;
}

.toggle-button {
    flex: 1;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.toggle-button i{
    color: #333;
    padding-right: 10px;
}

.toggle-button.active {
    background-color: #008500;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.toggle-button.active i{
    color: white;
}

.home-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 1000;
    font-size: 0.92rem;
    width: auto !important;
}

.button {
    font-size: 0.92rem;
}

.main-section .button {
    width: 100%;
}