:root {
    --primary: #C5A02B;
    /* Gold-ish primary */
    --primary-light: #d4b34d;
    --primary-dark: #b18e24;
    --bg-dark: #050505;
    --card-bg: rgba(18, 18, 20, 0.7);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.05);
    --font-display: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-display);
}

body {
    background-color: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    position: relative;
    color: var(--text-main);
}

.hidden {
    display: none !important;
}

/* Background Animated Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.4;
}

.blob {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation: move 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    background-color: var(--primary);
    animation-duration: 25s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    background-color: #4c1d95;
    animation-duration: 30s;
}

.blob-3 {
    top: 40%;
    left: 30%;
    background-color: #1e3a8a;
    animation-duration: 20s;
}

@keyframes move {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(10vw, 5vw);
    }
}

.login-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 10;
}

.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 3.5rem 2.5rem;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: slideUp 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo-area {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(197, 160, 43, 0.3));
}

h1 {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(to bottom, #fff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.logo-area p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 10px;
    font-weight: 400;
}

.tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px;
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 15px rgba(197, 160, 43, 0.25);
}

.input-group {
    margin-bottom: 1.75rem;
    animation: fadeIn 0.5s ease backwards;
}

.input-group:nth-child(1) {
    animation-delay: 0.2s;
}

.input-group:nth-child(2) {
    animation-delay: 0.3s;
}

.input-group:nth-child(3) {
    animation-delay: 0.4s;
}

label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    margin-left: 5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.input-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 64px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.input-pill:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 1px var(--primary);
}

.input-pill span {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.input-pill:focus-within span {
    color: var(--primary);
}

.input-pill input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    height: 100%;
    outline: none;
    font-size: 1rem;
    font-weight: 500;
}

.input-pill input::placeholder {
    color: #4b5563;
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #000;
    border: none;
    padding: 20px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px -5px rgba(197, 160, 43, 0.3);
}

.btn-submit:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(197, 160, 43, 0.5);
    filter: brightness(1.1);
}

.btn-submit:active {
    transform: translateY(-2px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.message {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    padding: 15px;
    border-radius: 16px;
    display: none;
    font-weight: 600;
}

.message.error {
    background: rgba(220, 38, 38, 0.1);
    color: #f87171;
    display: block;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.message.success {
    background: rgba(5, 150, 105, 0.1);
    color: #34d399;
    display: block;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

@media (max-width: 480px) {
    .login-card {
        padding: 3rem 1.5rem;
        border-radius: 30px;
    }

    h1 {
        font-size: 1.75rem;
    }
}