/**
 * Alchemica User Manager - Frontend CSS
 */

/* Container */
.alchemica-form-container {
    max-width: 588px;
    margin: 0 auto;
    padding: 30px;
}

.alchemica-form-container h1{
	text-align: center;	
}

/* Form Messages */
.alchemica-form-messages {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alchemica-form-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alchemica-form-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alchemica-form-messages.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Already logged message */
.alchemica-already-logged {
    text-align: center;
}

.alchemica-already-logged p:first-child {
    margin-bottom: 20px;
    font-size: 16px;
}

/* Form Fields */
.alchemica-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
	margin-top: 40px;
}

.alchemica-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alchemica-field label {
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.alchemica-field label .required {
    color: #dc3232;
}

.alchemica-field input[type="text"],
.alchemica-field input[type="email"],
.alchemica-field input[type="password"],
.alchemica-field input[type="tel"],
.alchemica-field input[type="number"],
.alchemica-field select,
.alchemica-field textarea {
	background: #FCFBF9;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 0px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.alchemica-field input:focus,
.alchemica-field select:focus,
.alchemica-field textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.alchemica-field input.error,
.alchemica-field select.error {
    border-color: #dc3232;
}

.alchemica-field-error {
    font-size: 12px;
    color: #dc3232;
    min-height: 16px;
}

/* Password wrapper */
.alchemica-password-wrapper {
    position: relative;
}

.alchemica-password-wrapper input {
    padding-right: 45px;
}

.alchemica-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
}

.alchemica-toggle-password:hover {
    color: #333;
}

/* Checkbox */
.alchemica-checkbox {
    flex-direction: row !important;
    align-items: center;
}

.alchemica-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.alchemica-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* Buttons */
.alchemica-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
}

.alchemica-btn-primary {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.alchemica-btn-primary:hover {
    background: #005a87;
    border-color: #005a87;
    color: #fff;
}

.alchemica-btn-primary:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.alchemica-btn-secondary {
    background: #666;
    color: #fff;
    border-color: #666;
}

.alchemica-btn-secondary:hover {
    background: #444;
    border-color: #444;
    color: #fff;
}

.alchemica-btn-outline {
    background: transparent;
    color: #0073aa;
    border-color: #0073aa;
}

.alchemica-btn-outline:hover {
    background: #0073aa;
    color: #fff;
}

.alchemica-btn-full {
    width: 100% !important;
	background: #BE9D5F !important;
    color: #1E1E1E !important;
    border: 0px !important;
}

/* Spinner */
.alchemica-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: alchemica-spin 0.8s linear infinite;
}

@keyframes alchemica-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form links */
.alchemica-form-links {
    text-align: right;
}

.alchemica-form-links a{
	text-decoration: underline;
	color: #1E1E1E;
}


.alchemica-link {
    font-size: 20x;
	text-decoration: underline !important;
	color: #00582B;
}

.alchemica-link:hover {
    text-decoration: underline;
}

/* Form footer */
.alchemica-form-footer {
    margin-top: 40px;
    text-align: center;
	font-size: 20px;
}

.alchemica-form-footer p {
    margin-bottom: 15px;
    color: #666 !important;
}

.alchemica-register-links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}

.alchemica-register-links a{
	text-decoration: underline !important;
	color: #00582B;
	font-size: 20px;
   
}

/* Sections (for multi-step forms) */

.alchemica-section h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    color: #333;
}

/* Grid */
.alchemica-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.alchemica-col-2 { flex: 0 0 calc(16.66% - 12.5px); }
.alchemica-col-4 { flex: 0 0 calc(33.33% - 10px); }
.alchemica-col-6 { flex: 0 0 calc(50% - 7.5px); }

@media (max-width: 600px) {
    .alchemica-col-2,
    .alchemica-col-4,
    .alchemica-col-6 {
        flex: 0 0 100%;
    }
}

/* Required note */
.alchemica-required-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

/* Confirmation info box */
.alchemica-confirmation-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.alchemica-confirmation-info h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.alchemica-confirmation-info p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #555;
}

.alchemica-confirmation-info p:last-child {
    margin-bottom: 0;
}

/* Notice */
.alchemica-notice {
    padding: 12px 16px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    color: #856404;
    margin-bottom: 20px;
}

/* Required fields hint */

.alchemica-required-hint {
    font-size: 12px;
    color: #8e8e8e;
}

.alchemica-field-hint {
    font-size: 12px;
    color: #8e8e8e;
}

/* Info box (procedura conferma) */
.alchemica-info-box {

    text-align: center;
    margin: 20px 0;
}


.alchemica-info-box p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.alchemica-info-box p:last-child {
    margin-bottom: 0;
}

/* Link underline style */
.alchemica-link-underline {
    text-decoration: underline;
}

.alchemica-link-underline:hover {
    text-decoration: none;
}

/* Business form container - larger */
.alchemica-register-business-container {
    max-width: 800px;
}

#alchemica-register-business-form h6{
	color: #FCFBF9;
	font-size: 20px;
}

.alchemica-checkbox label {
	color: #EFE9E1;
	font-size: 13px;
}

.alchemica-info-box h4, p {
	color: #EFE9E1 !important;
}

#alchemica-login-form .alchemica-checkbox label{
	color: #1E1E1E;
}