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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: #fff;
    min-height: 100vh;
    display: block;
}

.login-wrapper {
    margin-block: 10vh auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.logo-container {
    margin-bottom: 24px;
}

.logo {
    width: auto;
    height: 90px;
    max-width: 100%;
}

.login-panel {
    background-color: #1a1a1ae6;
    width: 100%;
    max-width: 330px;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    backdrop-filter: blur(5px);
}

.login-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 24px;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input {
    width: 100%;
    background-color: transparent;
    border: 1px solid #666;
    border-radius: 8px;
    color: #fff;
    padding: 16px 12px 6px 12px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #0082c9;
}

.input-group label {
    position: absolute;
    left: 12px;
    top: 13px;
    color: #aaa;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.2s ease-out;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group input.has-value + label {
    top: 4px;
    font-size: 11px;
    color: #aaa;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 14px;
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #fff;
}

.error-text {
    color: #e9322d;
    font-size: 14px;
    text-align: left;
    margin-top: 8px;
    display: none;
    align-items: center;
    gap: 6px;
    padding-left: 2px;
}
.error-text.show {
    display: flex;
}

.login-button {
    background-color: #0082c9;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s, background-color 0.2s;
    height: 44px;
    margin-top: 8px;
}

.login-button:hover {
    background-color: #0093e6;
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #0082c9;
}

.btn-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-text .arrow {
    width: 18px;
    height: 18px;
}

.spinner {
    animation: rotate 2s linear infinite;
    width: 20px;
    height: 20px;
    display: none;
}

.spinner .path {
    stroke: #000;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.links a {
    color: #fff;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
}

.links a:hover {
    text-decoration: none; /* No underline in modern NC typically, just color change or opacity */
    opacity: 0.8;
}

.footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}
