/* Twingital Directory Login - Estilos */

.tdl-wrapper {
    max-width: 450px;
    margin: 60px auto;
    padding: 20px;
}

.tdl-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: tdlFadeIn 0.3s ease-out;
}

@keyframes tdlFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tdl-box h2 {
    margin: 0 0 25px 0;
    font-size: 26px;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.tdl-form {
    margin: 0;
}

.tdl-field {
    margin-bottom: 16px;
}

.tdl-field input[type="text"],
.tdl-field input[type="email"],
.tdl-field input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.tdl-field input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.tdl-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.tdl-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.tdl-checkbox a {
    color: #4a90e2;
    text-decoration: none;
}

.tdl-checkbox a:hover {
    text-decoration: underline;
}

.tdl-btn {
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.tdl-btn-primary {
    background: #222;
    color: #fff;
}

.tdl-btn-primary:hover:not(:disabled) {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tdl-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tdl-msg {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.tdl-msg.show {
    display: block;
    animation: tdlSlideDown 0.3s ease-out;
}

@keyframes tdlSlideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 100px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

.tdl-msg.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tdl-msg.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tdl-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.tdl-links a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tdl-links a:hover {
    color: #357abd;
    text-decoration: underline;
}

.tdl-links span {
    color: #ccc;
    margin: 0 8px;
}

.tdl-message {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 450px;
    margin: 60px auto;
}

.tdl-message a {
    color: #4a90e2;
    text-decoration: none;
}

.tdl-message a:hover {
    text-decoration: underline;
}

/* Badge de reCAPTCHA */
.grecaptcha-badge {
    visibility: visible !important;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.grecaptcha-badge:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
    .tdl-wrapper {
        margin: 30px auto;
        padding: 10px;
    }
    
    .tdl-box {
        padding: 30px 25px;
    }
    
    .tdl-box h2 {
        font-size: 22px;
    }
}