* {
    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;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.logo-axis {
    height: 100px;
    width: auto;
}

.logo-top {
    height: 80px;
    width: auto;
}

.divider {
    width: 2px;
    height: 80px;
    background: #ddd;
}

.main-content {
    text-align: center;
}

.title {
    font-size: 3rem;
    color: #333;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
}

.feature h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.feature p {
    color: #555;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.buttons-start {
    justify-content: flex-start;
}

.btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

.footer {
    text-align: center;
    margin-top: 40px;
    color: #888;
    font-size: 0.9rem;
}

.message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    display: none;
}
.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none;
}

.form {
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: left;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 92px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.password-toggle:hover {
    background: rgba(102, 126, 234, 0.08);
}

.password-toggle::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    margin: 0 auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.password-toggle.password-toggle-visible::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 3 18 18'/%3E%3Cpath d='M10.58 10.58a2 2 0 0 0 2.83 2.83'/%3E%3Cpath d='M9.88 5.09A9.76 9.76 0 0 1 12 5c7 0 11 7 11 7a21.86 21.86 0 0 1-5.17 5.94'/%3E%3Cpath d='M6.61 6.61A21.18 21.18 0 0 0 1 12s4 7 11 7a9.76 9.76 0 0 0 2.12-.09'/%3E%3C/svg%3E");
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input[readonly] {
    background: #f5f7fb;
    color: #666;
}

.form-stepper {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.step-badge {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #d8def5;
    background: #eef2ff;
    color: #4b5a8c;
    font-size: 0.95rem;
    font-weight: 600;
}

.step-badge-active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.form-summary {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f5f7fb;
    color: #39415e;
    border: 1px solid #dbe2f3;
}

.helper-text {
    margin-bottom: 20px;
    color: #667085;
    font-size: 0.95rem;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    margin: 30px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}
.link {
    margin-top: 15px;
    color: #666;
}
.link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}
.link a:hover {
    text-decoration: underline;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.hidden {
    display: none;
}

.loading-card {
    min-width: 240px;
    padding: 24px 28px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.loading-spinner {
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;
    border: 4px solid #dbe4ff;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.loading-text {
    color: #39415e;
    font-weight: 600;
}

.debug-panel {
    max-width: 700px;
    margin: 20px auto 30px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #0f172a;
    color: #e2e8f0;
    text-align: left;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.25);
}

.debug-title {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.debug-subtitle {
    margin-bottom: 14px;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.debug-json {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92rem;
    line-height: 1.5;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .logos {
        flex-direction: column;
    }
    
    .divider {
        width: 80px;
        height: 2px;
    }
}
