
:root {
    --color-1: #6200ea;
    --color-2: #2979ff;
    --color-3: #00d2ff;
    --text-main: #1a1a1a;
    --text-muted: #4a5568;
    --bg-glass: rgba(255, 255, 255, 0.65);
    --input-glass: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body {
    background: linear-gradient(-45deg, var(--color-1), var(--color-2), var(--color-3), var(--color-1));
    background-size: 400% 400%;
    animation: gradientAnimation 8s ease infinite;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 15px;
    overflow-x: hidden;
    gap: 10px;
}


.login-card {
    background: var(--bg-glass);
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    border-radius: 28px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s ease forwards;
}

.login-footer-note {
    width: 100%;
    text-align: center;
    font-size: 11px;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.82);
    padding: 0 8px 2px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    margin-bottom: 25px;
}

.logo-container {
    width: 180px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

h1 {
    font-size: 26px;
    color: var(--text-main);
    font-weight: 900;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 5px;
    font-weight: 500;
}

.form-group {
    text-align: left;
    margin-bottom: 18px;
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
    animation: slideUp 0.35s ease forwards;
}

.hidden-group {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    animation: slideUp 0.35s ease forwards;
}

label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding-left: 2px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrapper svg.icon-field {
    position: absolute;
    left: 15px;
    width: 20px;
    height: 20px;
    fill: var(--text-main);
    opacity: 0.7;
    z-index: 3;
    pointer-events: none;
}

input {
    width: 100%;
    height: 54px;
    padding: 0 45px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    outline: none;
    font-size: 16px;
    color: var(--text-main);
    background: var(--input-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

input.plain-input {
    padding: 0 16px;
}

#recoverCode {
    text-align: center;
    letter-spacing: 10px;
    font-size: 22px;
    font-weight: 900;
}

input:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    color: var(--text-main);
}

.options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    gap: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
    font-weight: 600;
}

.checkbox-container input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    accent-color: var(--color-1);
    height: auto;
    width: auto;
    padding: 0;
    background: none;
    backdrop-filter: none;
}

.forgot-link {
    font-size: 13px;
    text-decoration: none;
    font-weight: 700;
    color: var(--color-1);
}

.back-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--color-1);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.timer-msg {
    display: none;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.btn-submit {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(to right, var(--color-1), var(--color-2));
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(98, 0, 234, 0.3);
    margin-top: 5px;
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    background: #cbd5e0;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.75;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -150%);
    width: 90%;
    max-width: 320px;
    background: var(--color-1);
    color: white;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    text-align: center;
}

.toast.active {
    transform: translate(-50%, 0);
}

@media (max-width: 480px) {
    .login-card {
        padding: 35px 25px;
    }
}
