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



body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* Admin Panel Button */
.admin-panel-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: none;
    /* Hidden by default - only shown for authorized admins */
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 2px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
}

.admin-panel-btn:hover {
    background: linear-gradient(135deg, #374151, #4b5563);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Discord Login Section */
.discord-login-section {
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}

.login-prompt h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #334155;
    font-weight: 700;
}

.login-prompt p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 25px;
}

.discord-login-btn {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

.discord-login-btn:hover {
    background: linear-gradient(135deg, #4752c4, #3c4591);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(88, 101, 242, 0.4);
}

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

.discord-login-btn svg {
    width: 24px;
    height: 24px;
}

.login-info {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 15px;
    opacity: 0.8;
}

.user-info {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #22c55e;
}

.user-details h3 {
    color: #15803d;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.user-details p {
    color: #16a34a;
    font-size: 0.9rem;
    margin: 0;
}

.logout-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: auto;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: #dc2626;
}

.application-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 1rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

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

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.success-message,
.error-message {
    padding: 30px;
    text-align: center;
}

.success-message {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #15803d;
}

.error-message {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #dc2626;
}

.success-message h3,
.error-message h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        margin: 0;
    }

    header {
        padding: 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    .application-form {
        padding: 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }
}

/* Animation for form appearance */
.application-form {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Required field indicator */
input:required,
select:required,
textarea:required {
    border-left: 3px solid #f59e0b;
}

input:required:valid,
select:required:valid,
textarea:required:valid {
    border-left: 3px solid #22c55e;
}