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

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

#app {
    width: 100%;
    max-width: 450px;
}

.step {
    display: none;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px 30px;
    animation: slideIn 0.3s ease;
}

.step.active {
    display: block;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.logo {
    max-width: 180px;
    margin-bottom: 15px;
}

.logo-small {
    max-width: 120px;
    margin-bottom: 10px;
}

.header h1 {
    font-size: 28px;
    color: #1a202c;
    margin-bottom: 5px;
}

.header h2 {
    font-size: 24px;
    color: #1a202c;
    margin-bottom: 5px;
}

.header p {
    color: #718096;
    font-size: 15px;
}

.back-btn {
    position: absolute;
    left: 0;
    top: 0;
    background: #f7fafc;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #4a5568;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #edf2f7;
}

/* Role Selection */
.role-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.role-btn {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 30px 25px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.role-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

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

.role-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.role-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 6px;
}

.role-desc {
    font-size: 14px;
    color: #718096;
}

.worker-btn:hover {
    border-color: #48bb78;
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.15);
}

.supervisor-btn:hover {
    border-color: #4299e1;
    box-shadow: 0 10px 25px rgba(66, 153, 225, 0.15);
}

/* Form Section */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

label {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    margin-bottom: -10px;
}

input[type="text"],
input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s;
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="tel"] {
    font-size: 24px;
    letter-spacing: 8px;
    text-align: center;
    font-weight: 600;
}

.help-text {
    font-size: 13px;
    color: #718096;
    margin-top: -10px;
}

.info-text {
    font-size: 14px;
    color: #4a5568;
    text-align: center;
    margin-bottom: 10px;
}

/* Buttons */
.primary-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.primary-btn:active:not(:disabled) {
    transform: translateY(0);
}

.primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.text-btn {
    background: none;
    border: none;
    color: #667eea;
    font-size: 14px;
    cursor: pointer;
    padding: 10px;
    font-weight: 500;
    transition: color 0.2s;
}

.text-btn:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Status Messages */
.status-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.status-message:not(:empty) {
    display: block;
}

.status-message.error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.status-message.success {
    background: #f0fff4;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.status-message.loading {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Version */
.version {
    position: fixed;
    bottom: 15px;
    right: 15px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

/* Responsive */
@media (max-width: 480px) {
    .step {
        padding: 30px 20px;
    }

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

    .role-icon {
        font-size: 40px;
    }

    .role-title {
        font-size: 20px;
    }
}
