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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: #667eea;
    font-size: 24px;
    font-weight: 600;
}

.logo p {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

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

label {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #667eea;
}

input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.btn {
    width: 100%;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover:not(:disabled) {
    background: #5568d3;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.message.error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.message.success {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.message.info {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
}

.hidden {
    display: none;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

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

.success-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e1e8ed;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
    font-weight: bold;
}

.success-container h2 {
    color: #1f2937;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.user-info {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.user-info p {
    color: #374151;
    font-size: 14px;
    margin: 8px 0;
}

.user-info strong {
    color: #1f2937;
}

.token-info {
    margin-top: 20px;
}

.token-info h3 {
    color: #374151;
    font-size: 16px;
    margin-bottom: 12px;
}

.token-box {
    margin-bottom: 16px;
}

.token-box label {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.token-box textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    resize: none;
    background: #f9fafb;
}

.token-box button {
    margin-top: 8px;
    padding: 8px 16px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
}

.token-box button:hover {
    background: #4b5563;
}

.footer {
    text-align: center;
    margin-top: 24px;
    color: #666;
    font-size: 13px;
}

.otp-input {
    font-size: 24px;
    letter-spacing: 8px;
    text-align: center;
    font-family: monospace;
}
