@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --accent-color: #5a189b;
    --base-color: white;
    --text-color: #3b0a6c;
    --input-color: #F3F0FF;
    --line-clr: #5a189b;
    --hover-clr: #9d4edc;

}

* {
    margin: 0;
    padding: 0;
}

html {
    font-family: Poppins, Segoe UI, sans-serif;
    font-size: 12pt;
    color: var(--base-color);

}

/* body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #5a189b27;
    z-index: -1;
} */

body {
    min-height: 100vh;
    background-image: url(./images/school-bg.jpeg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrapper {
    box-sizing: border-box;
    background: #37075e;
    backdrop-filter: blur(6px);
    width: max(40%, 600px);
    padding: 20px 10px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--text-color);
}

.logo {
    /* position: absolute;
    top: 20px;
    left: 20px; */
    width: 160px;
    height: fit-content;

    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: invert(1);
    }
}

h1 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
}

form {
    width: min(400px, 100%);
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

form>div {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

form label {
    flex-shrink: 0;
    height: 38px;
    width: 38px;
    background-color: var(--accent-color);
    fill: var(--base-color);
    color: var(--base-color);
    border-radius: 10px 0 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 500;
    position: relative;
}

form input {
    box-sizing: border-box;
    flex-grow: 1;
    min-width: 0;
    height: 38px;
    padding: 1em;
    font: inherit;
    border-radius: 0 10px 10px 0;
    border: 2px solid var(--input-color);
    border-left: none;
    background-color: var(--input-color);
    transition: 150ms ease;
}

form input[type="checkbox"] {
    width: 0;
    height: 0;
    position: absolute;
    left: 0;
}

.role {
    width: 100%;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: start;
}

.role label {
    border-radius: 10px;
}

.role label svg {
    fill: #fff;
}

.active label {
    background-color: var(--text-color);
}

.role:has(input:focus)>label {
    background-color: var(--accent-color)
}

form input:hover {
    border-color: var(--accent-color);
}

form input:focus {
    outline: none;
    border-color: var(--text-color);
}

div:has(input:focus)>label {
    background-color: var(--text-color);
}

form input::placeholder {
    color: var(--text-color);
}

form button {
    margin-top: 10px;
    border: none;
    border-radius: 1000px;
    padding: .85em 4em;
    background-color: var(--accent-color);
    color: var(--base-color);
    font: inherit;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: 150ms ease;
}

form button:hover {
    background-color: var(--text-color);
}

form button:focus {
    outline: none;
    background-color: var(--text-color);
}

a {
    text-decoration: none;
    color: #8422e7;
}

a:hover {
    text-decoration: underline;
}

@media(max-width: 1100px) {
    .wrapper {
        width: min(600px, 100%);
        border-radius: 0;
    }
}

form div.incorrect label {
    background-color: #f06272;
}

form div.incorrect input {
    border-color: #f06272;
}

#error-message {
    color: #f06272;
}

.message {
    text-align: left !important;
}


.toast-container {
    position: fixed;
    top: 25px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.toast {
    position: relative;
    width: 320px;
    border-radius: 12px;
    background: #fff;
    padding: 20px 35px 20px 25px;
    box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow-x: hidden;
    align-items: center;
    transform: translateX(calc(100% + 30px));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
}

.toast.active {
    transform: translateX(0%);
}

.toast .toast-content {
    display: flex;
    align-items: center;
}

.toast-content .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    min-width: 35px;
    font-size: 35px;
    color: #fff;
}

.toast-content .message {
    display: flex;
    flex-direction: column;
    margin-left: 15px;
}

.message .text {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    font-family: "Outfit", serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.message .text.text-1 {
    font-weight: 600;
    color: #333;
}

.toast .close {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
}

.toast .close:hover {
    opacity: 1;
}

.toast .progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
}

.toast .progress:before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: #4070f4;
}

/* If you edit the timeout variable in the JS, be sure to edit this too */
.progress.active:before {
    animation: progress 5s linear forwards;
}

@keyframes progress {
    100% {
        right: 100%;
    }
}

/* Toast Type Colors */
.toast.success .icon {
    color: rgb(25 135 84);
}

.toast.error .icon {
    color: rgb(220 53 69);
}

.toast.warning .icon {
    color: rgb(255 193 7);
}

.toast.info .icon {
    color: rgb(13 202 240);
}

.toast.success .progress:before {
    background: rgb(25 135 84);
}

.toast.error .progress:before {
    background: rgb(220 53 69);
}

.toast.warning .progress:before {
    background: rgb(255 193 7);
}

.toast.info .progress:before {
    background: rgb(13 202 240);
}

.school_name {
    display: none;
}