:root {
    --primary-color: #D31145;
    /* Fix Auto Red */
    --secondary-color: #1a1a1a;
    /* Dark Background */
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --success-color: #00c853;
    --font-family: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #0d0d0d;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(211, 17, 69, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(40, 40, 40, 0.3) 0%, transparent 40%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Header */
.header {
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
    margin-bottom: 20px;
    padding-top: 20px;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.divider {
    width: 2px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
}

.tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Card & Glass Effect */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-header p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.card-header strong {
    color: var(--primary-color);
}

/* Form */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 5px;
}

.form-group input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(211, 17, 69, 0.05);
    box-shadow: 0 0 0 4px rgba(211, 17, 69, 0.1);
}

.form-group small {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: 5px;
    opacity: 0.7;
}

/* Button */
.submit-btn {
    margin-top: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(211, 17, 69, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(211, 17, 69, 0.4);
    background: #e61e54;
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(4px);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.5s ease;
}

.hidden {
    display: none;
}

.check-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 200, 83, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--success-color);
}

.success-message h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.success-message p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--input-border);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    border-color: var(--text-color);
    color: var(--text-color);
}

/* Footer */
.footer {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.admin-link {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    margin-top: 5px;
    display: inline-block;
}

.admin-link:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .card {
        padding: 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .logo {
        height: 60px;
    }

    .divider {
        height: 50px;
    }

    .tagline {
        font-size: 0.9rem;
    }
}