/**
 * Drupal Register Form - Estilos
 */

.drupal-register-form {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.drupal-register-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
    text-align: center;
}

.drupal-register-description {
    margin: 0 0 25px 0;
    font-size: 14px;
    color: #646970;
    text-align: center;
}

/* Form Fields */
.drupal-form-row {
    margin-bottom: 20px;
}

.drupal-form-row-half {
    display: flex;
    gap: 15px;
}

.drupal-form-row-half .drupal-form-field {
    flex: 1;
}

.drupal-form-field {
    display: flex;
    flex-direction: column;
}

.drupal-form-field label {
    font-size: 14px;
    font-weight: 500;
    color: #1d2327 !important;
    margin-bottom: 6px;
}

.drupal-form-field label .required {
    color: #d63638 !important;
}

.drupal-form-field input[type="text"],
.drupal-form-field input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #f6f7f7;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.drupal-form-field input[type="text"]:focus,
.drupal-form-field input[type="email"]:focus {
    outline: none;
    border-color: #2271b1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.drupal-form-field input[type="text"].error,
.drupal-form-field input[type="email"].error {
    background: #fff5f5;
}

/* Button */
.drupal-register-btn {
    background-color: #76B82A !important;
    -webkit-transition-duration: 0.4s;
    transition-duration: 0.4s;
    -webkit-animation-duration: 0.4s;
    animation-duration: 0.4s;
    border-style: none;
    border-radius: 10px 10px 10px 10px !important;
    border:0 !important;
    padding-top: 10px;
    padding-bottom: 10px;
}

.drupal-register-btn:hover {
    opacity:0.8
}

.drupal-register-btn:active {
    transform: translateY(0);
}

.drupal-register-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.drupal-register-btn .btn-loader {
    display: flex;
    align-items: center;
}

/* Messages */
.drupal-form-messages {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.drupal-form-messages.error {
    background: #fcecec;
    border: 1px solid #d63638;
    color: #8a1e1e;
}

.drupal-form-messages.success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

/* Success State */
.drupal-register-success {
    text-align: center;
    padding: 40px 20px;
}

.drupal-register-success .success-icon {
    margin-bottom: 20px;
}

.drupal-register-success .success-icon svg {
    animation: scaleIn 0.5s ease;
}

.drupal-register-success .success-message {
    font-size: 16px;
    color: #1d2327;
    margin: 0;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.drupal-form-messages,
.drupal-register-success {
    animation: fadeIn 0.3s ease;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .drupal-register-form {
        padding: 20px;
        margin: 0 10px;
    }

    .drupal-form-row-half {
        flex-direction: column;
        gap: 20px;
    }

    .drupal-register-title {
        font-size: 20px;
    }

    .drupal-form-field input[type="text"],
    .drupal-form-field input[type="email"] {
        padding: 10px 12px;
    }

    .drupal-register-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .drupal-register-form {
        background: #1e1e1e;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .drupal-register-title {
        /* color: #f0f0f0; */
        color: #77b829 !important;
    }

    .drupal-register-description {
        color: #a0a0a0;
    }

    .drupal-form-field label {
        color: #e0e0e0;
    }

    .drupal-form-field input[type="text"],
    .drupal-form-field input[type="email"] {
        background: #2d2d2d;
        border-color: #404040;
        color: #f0f0f0;
    }

    .drupal-form-field input[type="text"]:focus,
    .drupal-form-field input[type="email"]:focus {
        background: #333;
        border-color: #2271b1;
    }
}
