:root {
    --primary-color: #2b3559;
    --secondary-color: #dea410;
    --light-bg: #f8f9fc;
    --success: #10b981;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(43, 53, 89, 0.4) 0%,
        rgba(222, 164, 16, 0.3) 100%
    ),
    url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(43, 53, 89, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(43, 53, 89, 0.2);
    position: relative;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.page {
    display: none;
}

.page.active {
    display: block;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #6b7280;
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    font-weight: 400;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(43, 53, 89, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
}

input[type="email"]::placeholder,
input[type="password"]::placeholder {
    color: #9ca3af;
    font-weight: 400;
}
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(43, 53, 89, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 0 4px rgba(222, 164, 16, 0.1),
        0 8px 25px rgba(43, 53, 89, 0.1);
    transform: translateY(-2px);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), #3d4a75);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.submit-btn::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;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(43, 53, 89, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.link-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.link-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.link-btn:hover::after {
    width: 100%;
}

.link-btn:hover {
    color: #c59209;
}

.text-center {
    text-align: center;
}

/* Floating animation for logo */
.logo {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Responsive design */
@media (max-width: 480px) {
    .container {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 16px;
    }

    .logo {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    input[type="email"],
    input[type="password"] {
        padding: 14px 16px;
    }

    .submit-btn {
        padding: 14px;
    }
}

/* Subtle background pattern */
.container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(222, 164, 16, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(43, 53, 89, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}