/* css/registration.css */
.registration-container {
    min-height: calc(100vh - 160px); /* Account for navbar and footer */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: var(--background-color);
}

.registration-form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
}

.registration-form-container h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.btn-block {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1rem;
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--secondary-color);
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Error states */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .registration-container {
        padding: 1rem;
    }

    .registration-form-container {
        padding: 1.5rem;
    }

    .form-control {
        padding: 0.625rem;
    }

    .btn-block {
        padding: 0.625rem;
    }
}

/* Animation for form submission */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.form-error-shake {
    animation: shake 0.5s ease-in-out;
}

/* Password strength indicator */
.password-strength {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.strength-weak {
    color: #dc3545;
}

.strength-medium {
    color: #ffc107;
}

.strength-strong {
    color: #28a745;
}

/* Form field icons */
.input-icon {
    position: relative;
}

.input-icon input {
    padding-left: 2.5rem;
}

.input-icon i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

/* Success message styles */
.registration-success {
    text-align: center;
    color: var(--success-color);
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--success-color);
    border-radius: 4px;
    background-color: rgba(40, 167, 69, 0.1);
}

/* Loading state */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading:after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid #fff;
    border-radius: 50%;
    border-right-color: transparent;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}