:root {
    --main: 'Arya', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    min-height: 100vh;
    color: #000000;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: var(--main);
}

body::before {
    content: '';
    position: fixed;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background-image: var(--bg-image, url('/resources/SDO-back-back.png'));
    background-size: 60%; 
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(200px) contrast(2.5);
    z-index: -1;
    animation: backgroundFloat 30s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    25% {
        transform: rotate(45deg) scale(1.05);
        opacity: 0.7;
    }
    50% {
        transform: rotate(90deg) scale(1.1);
        opacity: 0.9;
    }
    75% {
        transform: rotate(45deg) scale(1.05);
        opacity: 0.7;
    }
}

.front-cover {
    background-image: url('/resources/grid-light.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: fixed;
    height: 115vh;
    width: 101.5vw;
    z-index: -1;
}

.auth-container {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 30rem;
    padding: 2rem;
}

.auth-container.loaded {
    display: flex;
}

.logo-section {
    display: flex;
    align-items: center;
    animation: fadeInDown 0.6s ease;
}

.logo-section img {
    height: 3.5rem;
    width: 3.5rem;
    transform: translateY(.15rem);
}

.logo-section h1 {
    font-family: var(--main);
    font-size: 3rem;
    margin: 0;
}

.auth-box {
    width: 100%;
    background: rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 2.5rem 2.5rem 1rem 2.5rem;
    animation: fadeInUp 0.6s ease 0.3s both;
    transition: all 0.3s ease;
}

.auth-box:hover {
    background: rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-family: var(--main);
    font-size: 1.5rem;
    padding: 0;
    margin: 0;
    font-weight: 400;
}

.auth-header p {
    font-family: var(--main);
    font-size: 0.9rem;
    opacity: 0.5;
    padding: 0;
    margin: 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-family: var(--main);
    font-size: 0.9rem;
    opacity: 0.8;
    margin-left: 1rem;
}

.form-group input {
    width: 100%;
    font-family: var(--main);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.17);
    border-radius: 5px;
    color: #000000;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.4);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.remember-me input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.remember-me label {
    font-family: var(--main);
    font-size: 0.85rem;
    opacity: 0.7;
    cursor: pointer;
}

.forgot-password {
    font-family: var(--main);
    font-size: 0.85rem;
    color: #000000;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    margin-right: 1rem;
}

.forgot-password:hover {
    opacity: 1;
}

.submit-button {
    background: transparent;
    color: #000000;
    width: 100%;
    font-family: var(--main);
    font-size: 1rem;
    padding: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
}

.submit-button:hover {
    background: #000000;
    color: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.5);
    transform: scale(1.02);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button.loading {
    pointer-events: none;
    opacity: 0.6;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-family: var(--main);
    padding: 0;
    font-size: 0.85rem;
    opacity: 0.5;
}

.form-group.error input {
    border-color: rgba(239, 68, 68, 0.4);
}

.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    margin-left: 1rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LOADER */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loader-circle {
    position: absolute;
    width: 10rem;
    height: 10rem;
    background-size: contain;
    background-repeat: no-repeat;
    animation: loaderSpin 2s ease-in-out infinite;
}

.circle-1 {
    background-image: url('/resources/loading-l.png');
    animation-delay: 0s;
}

.circle-2 {
    background-image: url('/resources/loading-m.png');
    animation-delay: 0.1s;
}

.circle-3 {
    background-image: url('/resources/loading-s.png');
    animation-delay: 0.2s;
}

@keyframes loaderSpin {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0.8;
    }
}