@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-color: #7A1C27;
    --secondary-color: #333;
}

html {
    -webkit-font-smoothing: antialiased;
}

*,
*:before,
*:after {
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    min-height: 100vh;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

#page-content {
    opacity: 1;
    transition: opacity 0.6s ease;
}

#page-content.show {
    opacity: 1;
}

.container{
    width: 100%;
    height: 100vh;
    background: url('../imgs/gnsh_cover.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: end;
    align-items: center;
}

.login-form {
    width: 550px;
    height: 100%;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px); 
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}


.login-form .logo{
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-form .logo img{
    width: 12rem;
    height: 12rem;
}


.login-form .login-contents h2{
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.5rem;
}

.login-form .login-contents span{
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.5rem;
}

.login-form .login-contents h1{
    color: var(--primary-color);
    font-weight: 500;
    font-size: 2.25rem;
}

form{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1.25rem;
}

form input[type="email"],
form input[type="password"],
form input[type="text"] {
    width: 100%;
    height: 3rem;
    border-radius: .4rem;
    border: 2px solid #ddd;
    padding: 1.25rem;
    font-size: 1rem;
    color: var(--primary-color);
}

form button{
    width: 100%;
    border: none;
    padding: .8rem;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: .4rem;
}

form button:hover{
    background-color: #c4a030;
}

input::placeholder {
    color: #bbb;
    opacity: 1;
}

form .login-controls{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7.5rem;
}

form .login-controls input[type="checkbox"] {
    accent-color: var(--primary-color);
    border-radius: .4rem;
    border: 2px solid var(--primary-color);
    font-size: 1.25;
}

form label{
    color: var(--primary-color);
    font-size: 1.25;
}

form .login-controls a {
    color: var(--primary-color);
    text-decoration: none;
}

form .login-controls a:hover {
    text-decoration: underline;
}

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
}

.code-inputs input {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: 0.2s;
    font-weight: 600;
}

.code-inputs input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 6px rgba(122, 28, 39, 0.5);
}

a{
    color: var(--primary-color);
    text-decoration: none;
}

p{
    color: var(--primary-color);
    font-weight: 400;
    font-size: 1rem;
}

.labels{
    text-align: center;
}

.logins, .step1, .step2, .step3 {
    display: none;
    flex-direction: column;
}

.active {
    display: flex !important;
}

/* Toast Container Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.warning {
    border-left-color: #ffc107;
}

.toast.info {
    border-left-color: #17a2b8;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #28a745;
}

.toast.error .toast-icon {
    color: #dc3545;
}

.toast.warning .toast-icon {
    color: #ffc107;
}

.toast.info .toast-icon {
    color: #17a2b8;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px 0;
    color: var(--secondary-color);
}

.toast-message {
    font-size: 13px;
    margin: 0;
    color: #666;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #666;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    transition: width linear;
}

.toast.success .toast-progress {
    background: #28a745;
}

.toast.error .toast-progress {
    background: #dc3545;
}

.toast.warning .toast-progress {
    background: #ffc107;
}

.toast.info .toast-progress {
    background: #17a2b8;
}

@media (max-width: 540px) {
    .login-form {
        flex: 1;
        width: 100%;
    }

    .login-form .login-controls{
        gap: 4rem;
    }

    .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}