@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Roboto+Mono:wght@400;500;700&display=swap');
:root {
    --bg-primary: #080A0D;
    --bg-secondary: #101318;
    --bg-auth-box: rgba(22, 26, 33, 0.96);
    --bg-input: #050608;

    --text-primary: #F0F2F5;

    --text-secondary: #A0A8B4;
    --text-tertiary: #606872;

    --accent-interactive: #00BFFF;
 
    --accent-interactive-darker: #00A0CC;
    --accent-glow: rgba(0, 191, 255, 0.5);
    --accent-critical: #FF4757;

    --border-color: #2C2F36;
    --border-highlight: #40454D;

    --font-body: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --font-display: 'Inter', sans-serif;

    --auth-box-shadow: 0 18px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(44, 47, 54, 0.6);
    --input-shadow-inset: inset 0 2px 5px rgba(0, 0, 0, 0.5);

    --accent-success: #32CD32;

    --bg-alert-simple: var(--bg-secondary);

}

#simpleAlertPlaceholder {
  
    width: 100%;
    max-width: 430px;

    margin: 0 auto 0px auto;

}

.simple-alert {
    font-family: var(--font-body);
    background-color: var(--bg-alert-simple);
    color: var(--text-primary);
    padding: 12px 15px;

    border-radius: 6px;
    border: 1px solid var(--border-color);
    border-left-width: 4px;


    margin-top: 10px;

    display: flex;
    align-items: center;
    opacity: 0;

    animation: simpleAlertFadeIn 0.3s ease-out forwards;
}

@keyframes simpleAlertFadeIn {
    to {
        opacity: 1;
    }
}

.simple-alert i.fas {
    margin-right: 10px;
    font-size: 1.1em;

    flex-shrink: 0;
}

.simple-alert.alert-success {
    border-left-color: var(--accent-success);
}

.simple-alert.alert-success i.fas {
    color: var(--accent-success);
}

.simple-alert.alert-error {
    border-left-color: var(--accent-critical);
}

.simple-alert.alert-error i.fas {
    color: var(--accent-critical);
}

.simple-alert.alert-info {
    border-left-color: var(--accent-interactive);
}

.simple-alert.alert-info i.fas {
    color: var(--accent-interactive);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    padding: 20px;
  
}

#interactiveCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(42, 46, 52, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(42, 46, 52, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    animation: animatedGridAuth 70s linear infinite;
    pointer-events: none;
    z-index: -2;
    opacity: 0.4;
}

@keyframes animatedGridAuth {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 56px 28px;
    }
}

.auth-page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 430px;

    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s forwards;
    opacity: 0;
    transform: scale(0.8);
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-box {
    background-color: var(--bg-auth-box);
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: var(--auth-box-shadow);
    text-align: center;
    border: 1px solid var(--border-color);
}


.login-form-container,
.register-form-container {
    display: none;

}

.active-form-container {
    display: block;

    animation: formSwitchFadeIn 0.5s ease-out forwards;
}

@keyframes formSwitchFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.auth-header {
    margin-bottom: 30px;
}

.site-name-auth {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.8em;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-transform: none;
    margin-bottom: 5px;
    line-height: 1.1;
}

.site-name-auth .accent-char {

    color: var(--accent-interactive);
    text-shadow: 0 0 15px var(--accent-glow);
    font-weight: 900;
    font-size: 1em;

    margin-left: -2px;

}

.auth-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8em;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

#loginForm,
#registerForm {
    display: flex;
    flex-direction: column;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
    text-align: left;
}

.input-group label {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.75em;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    opacity: 0.9;
}

.input-group label i {
    margin-right: 9px;
    color: var(--accent-interactive);
    width: 16px;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.input-group:focus-within label i {
    opacity: 1;
}

.input-group input[type="text"],
.input-group input[type="password"],
.input-group input[type="email"] {
    width: 100%;
    padding: 13px 18px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9em;
    border-radius: 6px;
    box-shadow: var(--input-shadow-inset);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input::placeholder {

    color: var(--text-tertiary);
    opacity: 0.6;
}

.input-group input:focus {

    outline: none;
    border-color: var(--accent-interactive);
    box-shadow: var(--input-shadow-inset), 0 0 0 3px var(--accent-glow);
}

.input-focus-effect {

    display: block;
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    width: 0;
    background-color: var(--accent-interactive);
    transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 1px;
}

.input-group input:focus~.input-focus-effect {
    width: 100%;
}


.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 0.8em;
}

.checkbox-group {
    position: relative;
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 1px;
    height: 1px;
}

.checkbox-label {
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    user-select: none;
    transition: color 0.2s ease;
}

.checkbox-label:hover {
    color: var(--text-primary);
}

.checkbox-label span {
    width: 17px;
    height: 17px;
    border: 2px solid var(--border-highlight);
    border-radius: 4px;
    margin-right: 9px;
    display: inline-block;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.checkbox-label span::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 8px;
    color: var(--bg-auth-box);
    transition: transform 0.2s ease;
}

.checkbox-group input[type="checkbox"]:checked+.checkbox-label span {
    background-color: var(--accent-interactive);
    border-color: var(--accent-interactive);
}

.checkbox-group input[type="checkbox"]:checked+.checkbox-label span::after {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox-group input[type="checkbox"]:focus-visible+.checkbox-label span {
    box-shadow: 0 0 0 2.5px var(--accent-glow);
}

.secondary-link {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    font-weight: 500;
}

.secondary-link:hover {
    color: var(--accent-interactive);
    text-shadow: 0 0 6px var(--accent-glow);
}

.btn-auth {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 20px;
    width: 100%;
    border: 1px solid var(--accent-interactive-darker);
    border-radius: 6px;
    color: #FFF;
    background: var(--accent-interactive);
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.25), inset 0 -1px 1px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.2s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-auth i {
    margin-right: 10px;
    font-size: 1.05em;
}

.btn-auth:hover {
    background: var(--accent-interactive-darker);
    border-color: var(--accent-interactive);
    box-shadow: 0 6px 18px rgba(0, 191, 255, 0.35), inset 0 -1px 1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-auth:active {
    background: var(--accent-interactive);
    box-shadow: 0 2px 8px rgba(0, 191, 255, 0.2), inset 0 1px 1px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

.toggle-form-text {
    margin-top: 25px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.toggle-form-text a {
    color: var(--accent-interactive);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.toggle-form-text a:hover {
    color: var(--accent-interactive-darker);
    text-shadow: 0 0 5px var(--accent-glow);
    text-decoration: underline;
}

.auth-footer {
    margin-top: 30px;
    font-size: 0.7em;
    color: var(--text-tertiary);
    line-height: 1.5;
    opacity: 0.8;
}

.auth-footer p {
    margin-bottom: 3px;
}

.security-notice {
    font-weight: 500;
    color: var(--accent-pending);
    opacity: 0.7;
}

.version-info {
    position: fixed;
    bottom: 10px;
    right: 15px;
    font-family: var(--font-mono);
    font-size: 0.6em;
    color: var(--text-tertiary);
    opacity: 0.3;
    letter-spacing: 0.8px;
    z-index: 2;
}

@media (max-width: 480px) {
    .auth-form-wrapper {
        max-width: calc(100% - 20px);
    }

    .auth-box {
        padding: 30px 25px;
    }

    .site-name-auth {
        font-size: 2.2em;
    }

    .auth-subtitle {
        font-size: 0.7em;
        letter-spacing: 1.5px;
    }

    .input-group input[type="text"],
    .input-group input[type="password"],
    .input-group input[type="email"] {
        padding: 12px 16px;
        font-size: 0.85em;
    }

    .auth-options {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 22px;
    }

    .checkbox-group {
        justify-content: flex-start;
    }

    .secondary-link {
        text-align: left;
    }

    .btn-auth {
        font-size: 0.85em;
        padding: 13px 15px;
    }

    .auth-footer {
        font-size: 0.65em;
    }

    .toggle-form-text {
        font-size: 0.8em;
    }
}