
:root {
    --primary-color: #3C37F1;
    --primary-hover: #5A54F5;
    --primary-gradient: linear-gradient(135deg, #3C37F1, #5A54F5);
    --discord-color: #5865F2;
    --discord-hover: #4752C4;

    --bg-dark: rgba(0, 0, 0, 0.64);
    --bg-darker: rgba(0, 0, 0, 0.8);
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.15);

    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    --error-color: #FF4444;
    --success-color: #44FF44;

    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

.login-section {
    min-height: 100vh;
    padding: 150px 0 80px;
    position: relative;
    display: flex;
    align-items: center;
    background: radial-gradient(#393939, #0c0c0c);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}


.container {
    max-width: 70vw !important;
    margin: 0 auto !important;
    width: 70vw;
}


@media (max-width: 768px) {
    .container {
        margin: 0 8vw !important;
    }
}

.login-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.login-wrapper {
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
    background: var(--bg-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px;
    position: relative;
    z-index: 10;
    box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-fast);
}

.login-wrapper:hover {
    transform: translateY(-2px);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(60, 55, 241, 0.5), rgba(90, 84, 245, 0.5));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(60, 55, 241, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.login-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
    outline: none;
}

.input-wrapper input:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--glass-border-hover);
}

.input-wrapper input:focus,
.input-wrapper.focused input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(171, 171, 171, 0.7);
    box-shadow: 0 0 0 3px rgba(60, 55, 241, 0.1) !important;
}

.input-wrapper label {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: all var(--transition-fast);
    background: transparent;
    padding: 0 8px;
}

.input-wrapper input:focus + label,
.input-wrapper input:not(:placeholder-shown) + label,
.input-wrapper.focused label {
    top: -10px;
    left: 45px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.9);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color var(--transition-fast);
}

.input-wrapper input:focus ~ .input-icon,
.input-wrapper.focused .input-icon {
    color: var(--primary-color);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    font-size: 1.2rem;
    transition: color var(--transition-fast);
}

.toggle-password:hover {
    color: var(--text-secondary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.95rem;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.remember-me .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-border);
    border-radius: 5px;
    margin-right: 10px;
    position: relative;
    transition: all var(--transition-fast);
}

.remember-me input:checked + .checkmark {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
}

.remember-me input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.forgot-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.alert-message {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-message.error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #FF6B6B;
}

.alert-message.success {
    background: rgba(68, 255, 68, 0.1);
    border: 1px solid rgba(68, 255, 68, 0.3);
    color: #6BFF6B;
}

.alert-message i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(60, 55, 241, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-discord {
    width: 100%;
    padding: 16px;
    background: var(--discord-color);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-discord:hover {
    background: var(--discord-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}

.btn-discord i {
    font-size: 1.4rem;
}

.divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--glass-border);
}

.divider span {
    position: relative;
    padding: 0 20px;
    background: var(--bg-dark);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.register-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.register-link p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

.register-link a:hover {
    color: var(--primary-hover);
    transform: translateY(-1px);
}

.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float-shape 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-hover);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--discord-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float-shape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@media (max-width: 768px) {
    .login-section {
        padding: 120px 20px 60px;
    }

    .login-wrapper {
        padding: 40px 30px;
        border-radius: 25px;
    }

    .login-title {
        font-size: 1.9rem;
    }

    .login-logo {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 100px 15px 50px;
    }

    .login-wrapper {
        padding: 35px 25px;
        border-radius: 20px;
    }

    .login-title {
        font-size: 1.7rem;
    }

    .login-subtitle {
        font-size: 0.9rem;
    }

    .input-wrapper input {
        padding: 14px 15px 14px 45px;
        font-size: 0.95rem;
    }

    .input-icon {
        left: 15px;
        font-size: 1.1rem;
    }

    .input-wrapper label {
        left: 45px;
        font-size: 0.95rem;
    }

    .input-wrapper input:focus + label,
    .input-wrapper input:not(:placeholder-shown) + label,
    .input-wrapper.focused label {
        left: 40px;
        font-size: 0.8rem;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .btn-login,
    .btn-discord {
        padding: 14px;
        font-size: 1rem;
    }

    .shape-1 {
        width: 250px;
        height: 250px;
    }

    .shape-2 {
        width: 200px;
        height: 200px;
    }

    .shape-3 {
        width: 150px;
        height: 150px;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(60, 55, 241, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(60, 55, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(60, 55, 241, 0);
    }
}

.btn-login:focus {
    animation: pulse 1.5s infinite;
}

.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (prefers-color-scheme: light) {
    .login-section {
        background: #f0f0f0;
    }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px rgb(255, 255, 255) inset !important;
    box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}