* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Allow text selection only in input fields */
input, textarea {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.screen {
    display: none;
    width: 100%;
    max-width: 400px;
    min-height: 100vh;
    background: linear-gradient(135deg, #6a004a 0%, #9a007a 100%);
    position: relative;
}

.screen.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container {
    width: 90%;
    max-width: 350px;
    padding: 20px;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 180px;
    height: auto;
    max-height: 70px;
}

/* Security Badge */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    border-radius: 20px;
    padding: 8px 16px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #00ff00;
    font-weight: 500;
}

.lock-icon {
    margin-right: 6px;
    font-size: 14px;
}

/* Security Info */
.security-info {
    color: #e0e0e0;
    font-size: 14px;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Security Notice */
.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 150, 255, 0.1);
    border: 1px solid #0096ff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #0096ff;
    text-align: center;
}

.shield-icon {
    margin-right: 6px;
    font-size: 14px;
}

/* Security Message */
.security-message {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    font-size: 12px;
    color: #e0e0e0;
}

/* Security Confirmation */
.security-confirmation {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 10px;
    margin-top: 20px;
    font-size: 12px;
    color: #00ff00;
    text-align: center;
}

/* Security Warning */
.security-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 165, 0, 0.1);
    border: 1px solid #ffa500;
    border-radius: 8px;
    padding: 10px;
    margin-top: 20px;
    font-size: 12px;
    color: #ffa500;
    text-align: center;
}

.warning-icon {
    margin-right: 6px;
    font-size: 14px;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 25px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9a007a, #e080a0, #9a007a);
    border-radius: 16px 16px 0 0;
}

.info-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.info-icon {
    font-size: 28px;
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.info-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.info-content {
    color: #e8e8e8;
    font-size: 14px;
    line-height: 1.6;
}

.info-item {
    margin-bottom: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #e080a0;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item strong {
    color: #fff;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.info-item p {
    margin: 0;
    color: #d8d8d8;
    font-size: 13px;
    line-height: 1.5;
    text-align: justify;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tab {
    flex: 1;
    padding: 15px 0;
    text-align: center;
    color: #ccc;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab.active {
    color: white;
    border-bottom: 2px solid white;
}

/* Error Message */
.error-message {
    background-color: #ff4444;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

/* Forms */
.form {
    width: 100%;
}

.input-field {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
}

.input-field::placeholder {
    color: #aaa;
    font-weight: 400;
}

.input-field:focus {
    outline: none;
    border-color: #9a007a;
    box-shadow: 0 0 0 3px rgba(154, 0, 122, 0.1);
    transform: translateY(-1px);
}

.input-field:hover {
    border-color: #bbb;
}

/* Security Input Styling */
.input-field[type="password"] {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><circle cx="12" cy="16" r="1"></circle><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

/* Card Details */
.card-details {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.card-details .input-field {
    flex: 1;
    margin-bottom: 0;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background-color: #9a007a;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password-btn {
    background-color: transparent;
    border: 1px solid white;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.forgot-password-btn:hover {
    background-color: white;
    color: #9a007a;
}

/* Buttons */
.continue-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #e080a0 0%, #d07090 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(224, 128, 160, 0.3);
    position: relative;
    overflow: hidden;
}

.continue-btn:hover {
    background: linear-gradient(135deg, #d07090 0%, #c06080 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 128, 160, 0.4);
}

.continue-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(224, 128, 160, 0.3);
}

.continue-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.continue-btn:hover::before {
    left: 100%;
}

.retry-btn {
    width: 100%;
    padding: 15px;
    background-color: #e080a0;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.retry-btn:hover {
    background-color: #d07090;
    transform: translateY(-1px);
}

/* Titles */
.title {
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
}

.loading-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.loading-subtitle {
    color: white;
    font-size: 16px;
    text-align: center;
    margin-bottom: 40px;
}

.success-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.error-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

/* Instructions */
.instruction {
    color: white;
    font-size: 16px;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Timer */
.timer {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Icons */
.success-icon {
    width: 80px;
    height: 80px;
    background-color: #00ff00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 40px;
    color: white;
    font-weight: bold;
}

.error-icon {
    width: 80px;
    height: 80px;
    background-color: #ff4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 40px;
    color: white;
    font-weight: bold;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.success-message {
    color: white;
    font-size: 16px;
    text-align: center;
    line-height: 1.5;
}

.error-message {
    color: white;
    font-size: 16px;
    text-align: center;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 480px) {
    .screen {
        max-width: 100%;
        min-height: 100vh;
    }
    
    .container {
        width: 95%;
        padding: 15px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .input-field {
        padding: 12px;
        font-size: 16px;
    }
    
    .continue-btn {
        padding: 12px;
        font-size: 16px;
    }
}

/* Screen Transitions */
.screen {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.5s ease-in-out;
}

.screen.active {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in animation for new screens */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen.active .container {
    animation: fadeIn 0.6s ease-out;
}
