:root {
    --primary: #003366;
    --primary-light: #00509E;
    --accent: #D4AF37; /* Gold */
    --bg-main: #F8FAFC;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-main: #1E293B;
    --text-muted: #64748B;
    --success: #059669;
    --danger: #DC2626;
    --border-light: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Background Decorations */
.background-decor {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(0, 51, 102, 0.08), transparent 40%),
                radial-gradient(circle at 85% 30%, rgba(212, 175, 55, 0.08), transparent 40%);
}

.container {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px -15px rgba(0, 51, 102, 0.15);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-placeholder {
    font-size: 48px;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

h1 {
    font-weight: 700;
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 4px;
}

p {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-main);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(0, 80, 158, 0.1);
    background: #ffffff;
}

input::placeholder {
    color: #94A3B8;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--primary);
}

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

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-submit.loading span {
    opacity: 0;
}

.btn-submit.loading .loader {
    display: block;
}

/* Result Card */
.hidden {
    display: none !important;
}

.result-card {
    text-align: center;
    padding: 20px 0;
    animation: slideUp 0.5s ease;
}

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

.result-card .icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    margin: 0 auto 20px auto;
}

.icon.success {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
    border: 2px solid var(--success);
    box-shadow: 0 0 20px rgba(5, 150, 105, 0.2);
}

.icon.error {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
    border: 2px solid var(--danger);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
}

.result-card h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.result-card h2.success-text { color: var(--success); }
.result-card h2.error-text { color: var(--danger); }

.result-card p {
    color: var(--text-muted);
    font-size: 16px;
    text-transform: none;
    font-weight: 400;
    margin-bottom: 30px;
}

.btn-reset {
    background: rgba(0, 51, 102, 0.05);
    color: var(--primary);
    border: 1px solid rgba(0, 51, 102, 0.2);
    padding: 12px 24px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: rgba(0, 51, 102, 0.1);
}
