/* peteITcms Star Registration Styles */

.star-registration-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.star-registration-container h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    background: #fafafa;
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #0073aa;
    font-size: 1.2em;
}

.section-description {
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
    padding: 10px;
    background: #f0f8ff;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.form-group input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="file"]:hover {
    border-color: #0073aa;
}

.field-description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.image-preview {
    margin-top: 10px;
    text-align: center;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e1e1e1;
}

#star-registration-submit {
    background: #0073aa;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#star-registration-submit:hover {
    background: #005a87;
}

#star-registration-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Messages */
#star-registration-messages {
    margin-bottom: 20px;
}

.star-message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.star-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.star-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.star-message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-radius: 50%;
    border-top: 2px solid #0073aa;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Password strength indicator */
.password-strength {
    margin-top: 5px;
    height: 5px;
    background: #e1e1e1;
    border-radius: 3px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-weak .password-strength-bar {
    width: 33%;
    background: #e74c3c;
}

.password-strength-medium .password-strength-bar {
    width: 66%;
    background: #f39c12;
}

.password-strength-strong .password-strength-bar {
    width: 100%;
    background: #27ae60;
}

/* Responsive Design */
@media (max-width: 768px) {
    .star-registration-container {
        margin: 10px;
        padding: 15px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .image-preview img {
        max-width: 150px;
        max-height: 150px;
    }
}

/* Success Container */
.registration-success-container {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    animation: fadeInSuccess 0.5s ease-in;
}

.registration-success-container h3 {
    color: #155724;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.registration-success-container p {
    color: #155724;
    font-size: 1.1em;
    margin: 0;
    line-height: 1.6;
}

@keyframes fadeInSuccess {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
