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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #1f2937;
}

.container {
    width: 100%;
    max-width: 600px;
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

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

.header {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    padding: 48px 32px;
    text-align: center;
    color: white;
}

.logo {
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
}

.logo img {
    display: block;
    width: 80px;
    height: auto;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 400;
}

.content {
    padding: 48px 32px;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Loading State */
.spinner-container {
    margin: 0 auto 32px;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 4px solid #e5e7eb;
    border-top-color: #3B82F6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.status-message {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.status-detail {
    font-size: 16px;
    color: #6b7280;
}

/* Error State */
.error-icon {
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
}

.error-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.error-message {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Success State */
.success-icon {
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.success-message {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-primary {
    background: #3B82F6;
    color: white;
}

.btn-primary:hover {
    background: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: white;
    color: #3B82F6;
    border: 2px solid #3B82F6;
}

.btn-secondary:hover {
    background: #eff6ff;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    margin-top: 32px;
    text-align: center;
    color: white;
}

.footer p {
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Form Styles for Registration Page */
.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

.form-section {
    margin-bottom: 32px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.info-box {
    background: #eff6ff;
    border-left: 4px solid #3B82F6;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.info-box p {
    font-size: 14px;
    color: #1e40af;
    line-height: 1.6;
}

.info-box ul {
    margin-top: 8px;
    margin-left: 20px;
    font-size: 14px;
    color: #1e40af;
}

.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.alert-error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.alert-success {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.alert-info {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

/* Code Input Styles */
.code-input-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 24px 0;
}

.code-input {
    width: 48px !important;
    min-width: 48px;
    max-width: 48px;
    height: 56px;
    padding: 0 !important;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.code-input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.code-input.filled {
    border-color: #10b981;
    background: #f0fdf4;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 900px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.dashboard-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.dashboard-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.dashboard-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.dashboard-card-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3B82F6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.user-details {
    text-align: left;
}

.user-name {
    font-weight: 600;
    color: #111827;
}

.user-email {
    font-size: 14px;
    color: #6b7280;
}

.btn-logout {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-logout:hover {
    background: #f3f4f6;
    color: #111827;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #6b7280;
}

.info-value {
    font-weight: 600;
    color: #111827;
}

/* Timer Styles */
.timer {
    font-size: 14px;
    color: #6b7280;
    margin-top: 16px;
    text-align: center;
}

.timer.expired {
    color: #dc2626;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 32px 24px;
    }

    .header h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 16px;
    }

    .content {
        padding: 32px 24px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
