/* Estilos para la página de autenticación de Tours Marketplace */

/* Contenedor principal */
.tm-app-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f7fa;
}

.tm-auth-container {
    width: 100%;
    max-width: 480px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Encabezado */
.tm-auth-header {
    padding: 30px;
    text-align: center;
    background-color: #f8f9fb;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tm-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.tm-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Tabs de navegación */
.tm-tabs-nav {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tm-tab-link {
    flex: 1;
    text-align: center;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tm-tab-link:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.02);
}

.tm-tab-link.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
}

/* Contenido de los tabs */
.tm-tabs-content {
    padding: 30px;
}

.tm-tab-content {
    display: none;
}

.tm-tab-content.active {
    display: block;
}

/* Formularios */
.tm-form {
    margin-bottom: 20px;
}

.tm-form-group {
    margin-bottom: 20px;
}

.tm-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.tm-form-group input[type="text"],
.tm-form-group input[type="email"],
.tm-form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.tm-form-group input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.tm-form-group small {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* Checkbox estilizado */
.tm-checkbox {
    display: flex;
    align-items: center;
}

.tm-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.tm-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Tarjetas de selección de rol */
.tm-role-cards {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.tm-role-card {
    flex: 1;
    position: relative;
}

.tm-role-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.tm-role-card label {
    display: block;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tm-role-card input[type="radio"]:checked + label {
    border-color: #2563eb;
    background-color: rgba(37, 99, 235, 0.05);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.tm-role-icon {
    height: 48px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-icon-turista:before {
    content: "🧳";
    font-size: 24px;
}

.tm-icon-organizador:before {
    content: "🏢";
    font-size: 24px;
}

.tm-role-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.tm-role-desc {
    font-size: 13px;
    color: #666;
}

/* Botones */
.tm-button {
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tm-button:hover {
    background-color: #1d4ed8;
}

.tm-button:disabled {
    background-color: #93c5fd;
    cursor: not-allowed;
}

.tm-button-block {
    display: block;
    width: 100%;
}

/* Mensajes de formulario */
.tm-form-message {
    border-radius: 8px;
    font-size: 14px;
    display: none;
    position: absolute;
}

.tm-form-message:not(:empty) {
    display: block;
}

.tm-message-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.tm-message-success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Footer */
.tm-auth-footer {
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.tm-link-back {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.tm-link-back:hover {
    color: #2563eb;
}

/* Responsive */
@media (max-width: 576px) {
    .tm-auth-container {
        border-radius: 0;
        box-shadow: none;
    }
    
    .tm-tabs-content {
        padding: 20px;
    }

} 