/* Registration Page Styles */

.register-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.register-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

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

.register-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.register-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.register-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}

.register-header h2 {
    color: #2E7D32;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.register-form .form-group {
    margin-bottom: 1.5rem;
}

.register-form .form-label {
    font-weight: 600;
    color: #424242;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.register-form .form-label i {
    color: #4CAF50;
}

.register-form .form-control {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.register-form .form-control:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.15);
    outline: none;
}

.register-form .form-control::placeholder {
    color: #9e9e9e;
}

.register-form select.form-control {
    cursor: pointer;
}

.register-form .form-text {
    font-size: 0.875rem;
    color: #757575;
    margin-top: 0.25rem;
}

.register-form .form-check {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.register-form .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.25rem;
    margin-left: 0;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid #9e9e9e;
}

.register-form .form-check-input:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.register-form .form-check-input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.15);
}

.register-form .form-check-label {
    margin-left: 0;
    cursor: pointer;
    color: #424242;
    line-height: 1.5;
    flex: 1;
}

.register-form .btn-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    border: none;
    padding: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.register-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.register-form .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.register-form .btn-outline-secondary {
    border: 2px solid #9e9e9e;
    color: #424242;
    padding: 12px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.register-form .btn-outline-secondary:hover {
    background: #f5f5f5;
    border-color: #757575;
    color: #212121;
}

/* Alert Styles */
#alertContainer {
    margin-bottom: 1.5rem;
}

#alertContainer .alert {
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#alertContainer .alert-success {
    background: linear-gradient(135deg, #D4EDDA 0%, #C3E6CB 100%);
    color: #155724;
}

#alertContainer .alert-error {
    background: linear-gradient(135deg, #F8D7DA 0%, #F5C6CB 100%);
    color: #721C24;
}

/* File Input Styling */
.register-form input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.register-form input[type="file"]::file-selector-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.register-form input[type="file"]::file-selector-button:hover {
    background: #2E7D32;
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-container {
        padding: 2rem 0;
    }

    .register-card {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }

    .register-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .register-logo {
        width: 80px;
        height: 80px;
    }

    .register-header h2 {
        font-size: 1.75rem;
    }

    .register-form .form-group {
        margin-bottom: 1.25rem;
    }

    .register-form .btn-primary,
    .register-form .btn-outline-secondary {
        padding: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .register-card {
        padding: 1.5rem 1rem;
    }

    .register-header h2 {
        font-size: 1.5rem;
    }

    .register-logo {
        width: 70px;
        height: 70px;
    }
}

/* Loading Spinner for Submit Button */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

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