* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    object-fit: cover;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.card {
    background: rgba(248, 249, 250, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.notice-section {
    max-height: 150px;
    display: flex;
    flex-direction: column;
}

.notice-section h4 {
    color: #ffc107;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
}

.notice-content {
    color: white;
    font-size: 14px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    flex: 1;
    overflow-y: auto;
    text-align: left;
    padding-right: 5px;
    margin-bottom: 8px;
}

.notice-footer {
    color: #ffc107;
    font-size: 11px;
    opacity: 0.8;
    text-align: center;
    flex-shrink: 0;
    margin-top: auto;
}

.notice-content::-webkit-scrollbar {
    width: 4px;
}

.notice-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.notice-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.notice-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.auth-section {
    padding: 25px;
}

.auth-section h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    color: white;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(233, 236, 239, 0.8);
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input.error {
    border-color: #dc3545;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 20%, 40%, 60%, 80% {
        transform: translateX(-5px);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(5px);
    }
}

.verify-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.verify-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    display: none;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.verify-btn.loading .loading-spinner {
    display: block;
}

.message {
    font-size: 14px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 5px;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.message.show {
    display: block;
    opacity: 1;
}

.error-message {
    color: white;
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.success-message {
    color: white;
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.warning-message {
    color: white;
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.progress-container {
    display: none;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(233, 236, 239, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #28a745, #20c997);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    margin-top: 10px;
    color: white;
    font-size: 14px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.download-info {
    margin-top: 15px;
    padding: 10px;
    background: rgba(40, 167, 69, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.download-info h5 {
    color: #28a745;
    margin-bottom: 8px;
    font-size: 14px;
}

.download-info p {
    color: white;
    font-size: 12px;
    margin: 4px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

@media (max-width: 480px) {
    body {
        overflow-y: auto;
        padding: 10px;
    }

    .card {
        padding: 15px;
        margin: 10px 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}