* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a0033 0%, #0d001a 50%, #000000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.4);
    overflow: hidden;
    padding: 3px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-section h1 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(147, 51, 234, 0.3);
}

.subtitle {
    color: #9333ea;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.login-container {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    border: 1px solid rgba(147, 51, 234, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: #b07cee;
}

.tab-btn.active {
    color: #9333ea;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #9333ea, #7c3aed);
}

.form {
    display: none;
}

.form.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    color: #888;
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

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

.input-icon {
    position: absolute;
    left: 16px;
    color: #666;
    font-size: 14px;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #9333ea;
    background: rgba(147, 51, 234, 0.05);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.input-wrapper input::placeholder {
    color: #666;
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s ease;
    z-index: 1;
}

.toggle-password:hover {
    color: #9333ea;
}

.forgot-password {
    display: block;
    text-align: right;
    color: #9333ea;
    font-size: 11px;
    margin-top: 8px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.forgot-password:hover {
    text-decoration: underline;
    color: #b07cee;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.register-link {
    text-align: center;
    color: #666;
    font-size: 12px;
    letter-spacing: 1px;
    margin-top: 24px;
}

.register-link a {
    color: #9333ea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #b07cee;
    text-decoration: underline;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 350px;
    word-wrap: break-word;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    background: #dc2626;
}

.toast.success {
    background: #10b981;
}

@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }

    .logo-section h1 {
        font-size: 28px;
    }

    .logo {
        width: 80px;
        height: 80px;
    }

    .subtitle {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .toast {
        left: 20px;
        right: 20px;
        max-width: none;
        text-align: center;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(147, 51, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0);
    }
}

.logo {
    animation: pulse 2s infinite;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 51, 234, 0.7);
}
