/* Стили в цветах Indeed.com */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    background: #ffffff;
    max-width: 500px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 40px 35px;
    margin: 20px auto;
}

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

.logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
}

.header h1 {
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.form-section {
    padding: 5px 0;
}

.step-indicator {
    text-align: center;
    margin-bottom: 20px;
}

.step {
    display: inline-block;
    background: #e8f0fe;
    color: #2557a7;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.form-section h2 {
    color: #1a1a1a;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.form-section h3 {
    color: #1a1a1a;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
}

.info-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 25px;
    text-align: center;
}

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

.form-group label {
    display: block;
    color: #333;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #2557a7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 87, 167, 0.1);
}

.form-group small {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 1px;
    cursor: pointer;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    accent-color: #2557a7;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
    color: #444;
}

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background: #2557a7;
    color: white;
}

.btn-primary:hover {
    background: #1d4a8e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 87, 167, 0.3);
}

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

.btn-secondary {
    background: #e8f0fe;
    color: #2557a7;
}

.btn-secondary:hover {
    background: #d2e3fc;
}

.btn-small {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.error-message {
    background: #fde7e9;
    color: #d32f2f;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #d32f2f;
    font-size: 14px;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #2e7d32;
    font-size: 14px;
}

.login-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.login-link p {
    color: #666;
    font-size: 14px;
}

.login-link a {
    color: #2557a7;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

.user-panel {
    padding: 5px 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: #2557a7;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
}

.user-details {
    flex: 1;
}

.user-details p {
    margin: 0;
    font-size: 15px;
}

.user-details p strong {
    font-size: 16px;
}

.user-meta {
    color: #666;
    font-size: 13px !important;
    margin-top: 4px !important;
}

.status {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.info-box {
    background: #e8f0fe;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #2557a7;
    margin: 15px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-box .info-icon {
    font-size: 28px;
    line-height: 1;
}

.info-box h3 {
    color: #1a1a1a;
    font-size: 17px;
    margin-bottom: 5px;
}

.info-box p {
    color: #444;
    font-size: 14px;
    margin: 5px 0;
}

.info-box .info-text {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
    text-align: left;
}

.logout-form {
    margin-top: 25px;
}

.code-generated {
    background: #e8f0fe;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #2557a7;
}

.code-generated .code {
    font-size: 28px;
    font-weight: 700;
    color: #2557a7;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
}

.code-generated .hint {
    font-size: 13px;
    color: #555;
    margin-top: 5px;
}

.footer {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.footer p {
    margin: 5px 0;
}

/* Адаптивность */
@media (max-width: 480px) {
    .container {
        padding: 25px 20px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .info-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .invite-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .invite-actions {
        width: 100%;
    }
    
    .invite-actions .btn {
        width: 100%;
    }
}