/* =====================================================
   CREATE ACCOUNT PAGE - MODERN DESIGN
   Design System: Dark theme with cyan accents
   ===================================================== */

/* Container Principal */
.createaccount-modern {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #e6f8ff;
    animation: fadeInScale 0.4s ease-out;
}

/* Header */
.createaccount-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 32px;
    background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%);
    border-radius: 12px;
    border: 1px solid #2a3440;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.createaccount-logo {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 170, 0.3));
}

.createaccount-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #00ffaa;
    text-shadow: 0 0 20px rgba(0, 255, 170, 0.5);
}

.createaccount-subtitle {
    font-size: 16px;
    color: #8899aa;
    margin: 0;
}

/* Success Message */
.success-card {
    background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%);
    border: 1px solid #00ffaa;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 255, 170, 0.2);
}

.success-card-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 170, 0.5));
}

.success-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #00ffaa;
    text-align: center;
    margin-bottom: 16px;
}

.success-card-content {
    font-size: 15px;
    line-height: 1.6;
    color: #e6f8ff;
    text-align: center;
}

.success-card-content b {
    color: #00ffaa;
}

.success-card-content small {
    display: block;
    margin-top: 12px;
    color: #8899aa;
    font-size: 13px;
}

.success-action {
    text-align: center;
    margin-top: 24px;
}

/* Error Card */
.createaccount-error {
    background: linear-gradient(135deg, #2d1a1a 0%, #1a0f0f 100%);
    border: 2px solid #ff4444;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(255, 68, 68, 0.15);
    animation: shake 0.5s ease-in-out;
}

.createaccount-error-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.createaccount-error-content {
    flex: 1;
}

.createaccount-error-title {
    font-size: 18px;
    font-weight: bold;
    color: #ff4444;
    margin-bottom: 12px;
}

.createaccount-error-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.createaccount-error-list li {
    color: #ffb3b3;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.createaccount-error-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ff4444;
    font-weight: bold;
}

/* Form Card */
.createaccount-card {
    background: linear-gradient(135deg, #1a2332 0%, #0f141a 100%);
    border: 1px solid #2a3440;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-bottom: 24px;
}

.createaccount-intro {
    font-size: 15px;
    line-height: 1.6;
    color: #c5d1de;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(0, 255, 170, 0.05);
    border-left: 3px solid #00ffaa;
    border-radius: 4px;
}

/* Form Sections */
.form-section-create {
    margin-bottom: 28px;
}

.form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #00ffaa;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2a3440;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-icon {
    font-size: 20px;
}

/* Form Groups */
.form-group-create {
    margin-bottom: 18px;
}

.form-label-create {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #00ffaa;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.label-icon-create {
    font-size: 16px;
}

.form-input-create,
.form-select-create,
.form-textarea-create {
    width: 100%;
    padding: 12px 14px;
    background: #0f141a;
    border: 2px solid #2a3440;
    border-radius: 8px;
    color: #e6f8ff;
    font-size: 14px;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input-create:focus,
.form-select-create:focus,
.form-textarea-create:focus {
    outline: none;
    border-color: #00ffaa;
    box-shadow: 0 0 0 3px rgba(0, 255, 170, 0.1);
}

.form-input-create::placeholder {
    color: #5a6673;
}

.form-input-create.error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.05);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #7a8591;
    margin-top: 6px;
    font-style: italic;
}

/* Input with Status */
.input-with-status {
    position: relative;
}

.input-status {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.input-status.checking {
    background: rgba(0, 255, 170, 0.1);
    color: #00ffaa;
}

.input-status.valid {
    background: rgba(0, 255, 170, 0.15);
    color: #00ffaa;
}

.input-status.invalid {
    background: rgba(255, 68, 68, 0.15);
    color: #ff4444;
}

/* Captcha Display */
.captcha-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #0f141a;
    border: 2px solid #2a3440;
    border-radius: 8px;
    margin-bottom: 12px;
}

.captcha-display img {
    border-radius: 6px;
    border: 1px solid #2a3440;
}

.captcha-refresh {
    padding: 8px 16px;
    background: #2a3440;
    border: none;
    border-radius: 6px;
    color: #00ffaa;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.captcha-refresh:hover {
    background: #3a4450;
    transform: scale(1.05);
}

/* Rules Section */
.rules-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #2a3440;
}

.rules-title {
    font-size: 18px;
    font-weight: bold;
    color: #00ffaa;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-textarea-create {
    min-height: 300px;
    resize: vertical;
    line-height: 1.6;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Checkbox Agreement */
.checkbox-agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 255, 170, 0.05);
    border: 2px solid #2a3440;
    border-radius: 8px;
    margin-top: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-agreement:hover {
    border-color: #00ffaa;
    background: rgba(0, 255, 170, 0.08);
}

.checkbox-agreement input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #00ffaa;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-agreement label {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #e6f8ff;
    cursor: pointer;
    user-select: none;
}

/* Form Actions */
.createaccount-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-create,
.btn-back {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 160px;
    justify-content: center;
}

.btn-create {
    background: linear-gradient(135deg, #00ffaa 0%, #00d9a3 100%);
    color: #0a0e13;
    box-shadow: 0 4px 12px rgba(0, 255, 170, 0.3);
}

.btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 170, 0.4);
}

.btn-create:active {
    transform: translateY(0);
}

.btn-back {
    background: #2a3440;
    color: #e6f8ff;
}

.btn-back:hover {
    background: #3a4450;
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 18px;
}

/* Info Box */
.info-box {
    background: rgba(0, 150, 255, 0.1);
    border: 1px solid rgba(0, 150, 255, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.info-box-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.info-box-content {
    flex: 1;
    font-size: 13px;
    line-height: 1.6;
    color: #a8b3c2;
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Loading State */
.btn-create.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-create.loading::after {
    content: "⏳";
    position: absolute;
    right: 12px;
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .createaccount-modern {
        padding: 12px;
    }

    .createaccount-header {
        padding: 20px 16px;
    }

    .createaccount-title {
        font-size: 26px;
    }

    .createaccount-logo {
        font-size: 40px;
    }

    .createaccount-card {
        padding: 24px 20px;
    }

    .createaccount-actions {
        flex-direction: column;
    }

    .btn-create,
    .btn-back {
        width: 100%;
    }

    .form-textarea-create {
        min-height: 200px;
        font-size: 12px;
    }

    .captcha-display {
        flex-direction: column;
        align-items: stretch;
    }

    .captcha-display img {
        width: 100%;
        height: auto;
    }
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    height: 4px;
    background: #2a3440;
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.password-strength-bar.weak {
    width: 33%;
    background: #ff4444;
}

.password-strength-bar.medium {
    width: 66%;
    background: #ffaa00;
}

.password-strength-bar.strong {
    width: 100%;
    background: #00ffaa;
}

.password-strength-text {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 600;
}

.password-strength-text.weak {
    color: #ff4444;
}

.password-strength-text.medium {
    color: #ffaa00;
}

.password-strength-text.strong {
    color: #00ffaa;
}

/* Additional Info */
.additional-info {
    margin-top: 24px;
    padding: 16px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
}

.additional-info-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.additional-info-text {
    font-size: 13px;
    color: #a8b3c2;
    line-height: 1.6;
}
