* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 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: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    padding: 40px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header .logo {
    width: 400px;
    height: auto;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.header p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

input[type="text"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="file"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-wrapper input[type="file"] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #667eea;
    border-radius: 8px;
    background: #f8f9ff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background: #eef1ff;
    border-color: #5568d3;
}

.file-upload-label svg {
    width: 48px;
    height: 48px;
    margin-right: 15px;
    color: #667eea;
}

.file-info {
    text-align: center;
}

.file-info .title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.file-info .subtitle {
    font-size: 12px;
    color: #999;
}

.file-selected {
    margin-top: 10px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 8px;
    color: #2e7d32;
    font-size: 14px;
    display: none;
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    margin-top: 15px;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.form-group.disabled {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.form-group.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    z-index: 10;
}

.status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.status-message.info {
    background: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #1976d2;
}

.status-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.status-message.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.status-message.warning {
    background: #fff3e0;
    color: #ef6c00;
    border-left: 4px solid #ef6c00;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    display: none;
}

.step {
    flex: 1;
    text-align: center;
    padding: 10px;
    position: relative;
}

.step::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.step:first-child::before {
    left: 50%;
}

.step:last-child::before {
    right: 50%;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.step.active .step-circle {
    background: #667eea;
}

.step.completed .step-circle {
    background: #4caf50;
}

.step-label {
    font-size: 11px;
    color: #666;
}

/* ===== RESPONSIVE DESIGN - MOBILE ===== */
@media (max-width: 768px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }

    .container {
        padding: 25px 15px;
        border-radius: 15px;
        margin: 10px 0;
    }

    .header .logo {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
    }

    .header h1 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .header p {
        font-size: 13px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    input[type="text"],
    input[type="password"],
    input[type="file"] {
        padding: 10px 12px;
        font-size: 13px;
    }

    .file-upload-label {
        padding: 30px 15px;
        flex-direction: column;
    }

    .file-upload-label svg {
        width: 40px;
        height: 40px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .file-info .title {
        font-size: 14px;
    }

    .file-info .subtitle {
        font-size: 11px;
    }

    .btn {
        padding: 12px;
        font-size: 15px;
    }

    .status-message {
        padding: 12px;
        font-size: 13px;
    }

    .progress-steps {
        flex-direction: column;
        gap: 15px;
    }

    .step {
        padding: 0;
    }

    .step::before {
        display: none;
    }

    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .step-label {
        font-size: 12px;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .container {
        padding: 20px 12px;
        border-radius: 12px;
    }

    .header .logo {
        max-width: 220px;
        padding: 10px 15px;
    }

    .header h1 {
        font-size: 20px;
    }

    .header p {
        font-size: 12px;
    }

    .btn {
        padding: 11px;
        font-size: 14px;
    }

    .file-upload-label {
        padding: 25px 10px;
    }

    .file-upload-label svg {
        width: 35px;
        height: 35px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover:not(:disabled),
    .btn-success:hover {
        transform: none;
    }

    .btn-primary:active:not(:disabled),
    .btn-success:active {
        transform: scale(0.98);
    }

    .file-upload-label:hover {
        background: #f8f9ff;
        border-color: #667eea;
    }

    .file-upload-label:active {
        background: #eef1ff;
        border-color: #5568d3;
    }
}
